Model valid order status transitions with a backed PHP enum and Eloquent, no state machine package required.
Latest News
Latest Links
More Articles
Skip the old Rule::passes()/message() dance. Build reusable, testable validation logic with ValidationRule invokable classes.
Replace nested string function calls and ternaries with Str::of() chains that read top to bottom and are easy to extend.
Laravel shipped a first-party package for managing document head tags fluently across Blade, Livewire, and Inertia apps.
Three Eloquent shortcuts look almost identical. Here is how firstOrCreate, updateOrCreate, and firstOrNew actually differ, and when each one bites you.
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.