Dockerize Laravel: Multi-Stage Dockerfile and Docker Compose Guide
Dockerize Laravel with a tested multi-stage Dockerfile, nginx and Compose queue worker: 771 MB down to 187 MB, 19.7s rebuilds, plus the MySQL healthcheck trap.
10 articles tagged with #PHP
Dockerize Laravel with a tested multi-stage Dockerfile, nginx and Compose queue worker: 771 MB down to 187 MB, 19.7s rebuilds, plus the MySQL healthcheck trap.
Why Laravel's queue:retry-batch can silently do nothing on a cancelled batch, and how to recover failed batch jobs safely with a ledger. Tested up to 10,000 jobs.
In January 2021, CVE-2021-3129 showed how much damage one config value can do. On any Laravel app running facade/ignition older than 2.5.2 with APPDEBUG=true, an unauthenticated attacker could…
A Laravel testing strategy with measured costs: what to unit, feature and browser test, shown with a small Pest app and three injected bugs.
A stock Laravel 12 skeleton, built with the Dockerfile most tutorials hand you, lands at 1.24 GB. It ships Composer, git, unzip, the full Node 22 toolchain, nodemodules/ (398 MB on a default Vite…
Discover how we achieved 5x request throughput and 60% latency reduction using Laravel Octane in production—without touching our server setup or rewriting code.
Learn how we built a high-traffic e-commerce platform handling 50k+ daily orders using Laravel. Real architecture decisions, performance optimizations, and lessons learned from production.
Stop overselling in Laravel 12 with a tested stock-reservation pattern, plus shipping and tax APIs behind fakeable interfaces and exact rounding rules.
Laravel 12 Stripe webhooks that handle duplicate and out-of-order events: signature check, idempotency keys, an order state machine, and a full runnable test setup.
Laravel 12 product, variant and integer-price schema, indexed catalog queries with EXPLAIN output, and a database cart that merges on login, all tested.