Three Eloquent shortcuts look almost identical. Here is how firstOrCreate, updateOrCreate, and firstOrNew actually differ, and when each one bites you.
Latest News
Latest Links
More Articles
Build Laravel middleware that replays cached responses for retried payment requests, so a client timeout never turns into a double charge.
Announced at Laracon US 2026, Laravel Cloud managed queues now scale worker capacity to zero when idle, so an empty queue no longer costs anything.
Every SaaS ends up needing a weekly digest email. Build one properly with the scheduler, chunked queries, and queued, rate-limited mail.
Not every event listener needs to run inline before your response returns. Implement ShouldQueue and Laravel queues the listener automatically.
Taylor Otwell demoed CPX 2.0 at Laracon US 2026 — now a first-party laravel/cpx package that runs any Composer package without adding it to your project.
Stop opening tinker just to remember a model's attributes, casts, and relationships. artisan model:show prints all of it in one command.
Presence channels let you know exactly who is currently viewing a page, in real time. Build a live "who is online" indicator with Reverb.
Bulk imports and seeders can trigger a storm of observers and listeners you never intended. withoutEvents() and saveQuietly() turn them off cleanly.