Laravel / 2 min read
A small publication wants one article to appear tomorrow morning. Running an always-on queue worker solely to flip a visibility flag adds an unnecessary operational dependency. A s...
{ }
Laravel / 2 min read
A project list loads quickly with three records but slows down with fifty. Each row displays its category, and the template causes another relationship query for every project. The...
{ }
Laravel / 2 min read
A service reads env('SUPPLIER_TOKEN') directly from its class. It works during development, then behaves differently after configuration is cached on the server. The application ha...
{ }
Laravel / 2 min read
A profile form exposes a name and email address. A visitor adds an is_admin field to the request. If the controller passes broad request data into persistence, the server may accep...
Laravel / 2 min read
A customer searches invoices by number or reference. The query begins with a tenant filter, then adds an ungrouped OR. That OR can change the meaning of the entire condition and ex...
{ }
Laravel / 2 min read
Your synchronization job finishes without an exception, but the supplier returned HTTP 500. The application recorded the run as successful because it treated receiving a response a...
Laravel / 2 min read
A request creates an order and immediately dispatches a job. On a fast queue, the worker starts before the database transaction commits. The worker then queries an order that does...
{ }
PHP / 2 min read
An import job passes a product code and a quantity through several services. A small readonly object can make that contract easier to follow. It still needs to reject impossible va...
{ }
PHP / 2 min read
An import can be queued, running, finished, or failed. An unexpected upstream state should not accidentally display as success. A match expression makes the mapping compact, but th...