Laravel Events, Listeners and Observers: Taming Side Effects in Controllers
Using events, listeners and model observers to move side effects like notifications and cache clearing out of controllers and into named classes.
Software, AI, databases and the craft of building for the web — explained clearly, with code you can actually use.
Using events, listeners and model observers to move side effects like notifications and cache clearing out of controllers and into named classes.
Beyond basic Cache::remember calls: how to invalidate cached data correctly and avoid cache stampedes under load.
How to change a production schema without locking tables or breaking the currently deployed code, using an expand-and-contract approach.
An introduction to writing Laravel feature and unit tests with Pest, including datasets, expectations and what's actually worth testing.
A practical approach to API versioning in Laravel using resource classes, so you can evolve a response shape without breaking existing clients.
How to use relationships, local scopes and query builder macros to keep business logic out of controllers and in models where it belongs.
A practical look at designing Laravel jobs that fail gracefully, retry sensibly, and leave a clear trail when they don't succeed.
Compare Server-Sent Events and WebSockets to choose the right real-time architecture for your web application based on traffic, complexity, and server load.
A slow query is usually a missing or mismatched index. Learn to read MySQL 8's EXPLAIN output, order composite index columns correctly and verify the fix.