Avatar 💻

recca0120 Tech Notes

Software Developer / Tech Notes

  1. Home
  2. Archives
  3. Categories
  4. Tags
  5. Search
  6. About
    1. Dark Mode

Archives

2026 25
2024 3
2023 11
2022 13
2020 15
More

Categories

PHP Laravel Frontend Testing Database DevOps Tools MacOS Windows Python

Tags

Laravel PHP Testing Javascript PHPUnit SQLite Typescript Aws Blade Composer Developer-Tools Guzzle Mockery Sql.js Validation Devops Docker Linux MacOS Migration
Featured image of post 2 Ways to Fake $_SERVER Variables in Laravel Feature Tests
Laravel Testing

2 Ways to Fake $_SERVER Variables in Laravel Feature Tests

Fake $_SERVER in Laravel feature tests by passing server vars per-request, or use withServerVariables() to apply them globally for the entire test method.

2020 年 6 月 23 日
正體中文
Laravel Testing PHPUnit
Featured image of post Fix Laravel Eloquent Memory Leak with Large Datasets
Laravel PHP

Fix Laravel Eloquent Memory Leak with Large Datasets

Eloquent caches loaded relations on every Model instance, causing memory to climb in large loops. Call setRelations([]) on each iteration to release the cache.

2020 年 6 月 18 日
正體中文
Laravel Eloquent PHP
Featured image of post Fix Redis TCP Backlog 511 Warning: Raise somaxconn
Database DevOps

Fix Redis TCP Backlog 511 Warning: Raise somaxconn

Redis warns that TCP backlog 511 exceeds somaxconn 128, dropping connections under load. Raise somaxconn via /proc and persist it in sysctl.conf permanently.

2020 年 6 月 12 日
正體中文
Redis Linux
Featured image of post 3 Laravel Migration Pitfalls and How to Fix Them
Laravel Database

3 Laravel Migration Pitfalls and How to Fix Them

Avoid 3 migration rollback mistakes: mixing add/drop in one closure, dropping index and column together, and multiple dropColumn calls. Catch them with SQLite.

2020 年 6 月 8 日
正體中文
Laravel Migration SQLite
Featured image of post Fix PHP Curl Comodo SSL Expired Error with GuzzleHttp verify
PHP Laravel

Fix PHP Curl Comodo SSL Expired Error with GuzzleHttp verify

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.

2020 年 6 月 1 日
正體中文
PHP Guzzle Laravel
Featured image of post Fix adb Server and Client Version Mismatch on Mac
MacOS

Fix adb Server and Client Version Mismatch on Mac

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.

2020 年 5 月 29 日
正體中文
Android MacOS
Featured image of post Throw Laravel ValidationException Manually for API Errors
Laravel PHP

Throw Laravel ValidationException Manually for API Errors

Wrap external API errors with ValidationException::withMessages to output Laravel validation format, so the frontend displays them like regular form errors.

2020 年 5 月 24 日
正體中文
Laravel Validation PHP
Featured image of post tester-phpunit: Run PHPUnit Tests Inside Atom Editor
Testing PHP

tester-phpunit: Run PHPUnit Tests Inside Atom Editor

An Atom editor package for running PHPUnit tests directly inside the editor — no terminal switching required to execute and review PHP unit test results.

2017 年 7 月 23 日
正體中文
PHPUnit PHP Testing Atom
1 3 4 5 6 7
© 2020 - 2026 recca0120 Tech Notes
recca0120 on GitHub
Built with Hugo
Theme Stack designed by Jimmy