diff --git a/docs/development/testing-guide.md b/docs/development/testing-guide.md index 92e7ed4..458be68 100644 --- a/docs/development/testing-guide.md +++ b/docs/development/testing-guide.md @@ -43,7 +43,6 @@ Saucebase uses PHPUnit for backend testing with three test suites configured in - `DB_CONNECTION=sqlite`, `DB_DATABASE=:memory:` — in-memory SQLite, no teardown needed - `QUEUE_CONNECTION=sync` — jobs run inline - `BCRYPT_ROUNDS=4` — faster password hashing in tests -- `TELESCOPE_ENABLED=false`, `PULSE_ENABLED=false` — observability tools disabled The base `TestCase` seeds the database before each test class (`$seed = true`) and provides a `createUser()` helper that creates a factory user and assigns the `user` role. diff --git a/docs/reference/troubleshooting.md b/docs/reference/troubleshooting.md index 0a156a2..852bc9b 100644 --- a/docs/reference/troubleshooting.md +++ b/docs/reference/troubleshooting.md @@ -417,7 +417,7 @@ docker compose restart mysql DB::enableQueryLog(); # 2. Check for N+1 query problems -# Use: php artisan debugbar:publish (Laravel Debugbar) +# Add to AppServiceProvider boot(): Model::preventLazyLoading(! app()->isProduction()); # 3. Cache configuration php artisan config:cache