Fake $_SERVER in Laravel feature tests by passing server vars per-request, or use withServerVariables() to apply them globally for the entire test method.
Eloquent caches loaded relations on every Model instance, causing memory to climb in large loops. Call setRelations([]) on each iteration to release the cache.
Redis warns that TCP backlog 511 exceeds somaxconn 128, dropping connections under load. Raise somaxconn via /proc and persist it in sysctl.conf permanently.
Avoid 3 migration rollback mistakes: mixing add/drop in one closure, dropping index and column together, and multiple dropColumn calls. Catch them with SQLite.
PHP Curl throws a Comodo RSA SSL expired error on Linux due to missing Root CA. Use GuzzleHttp verify to point to the certificate file, globally or per service.
Homebrew and Android SDK each install a separate adb, causing server and client version conflicts. Remove the Homebrew copy and point PATH to the SDK to fix it.
Wrap external API errors with ValidationException::withMessages to output Laravel validation format, so the frontend displays them like regular form errors.
An Atom editor package for running PHPUnit tests directly inside the editor — no terminal switching required to execute and review PHP unit test results.