Your config/database.php connections aren't fixed at boot. Here's how to pick, register, and reset connections at runtime.
Latest News
Latest Links
More Articles
Filament rolls out a beta with performance work spanning forms, tables, panels, and widgets. Here's what changed and how to try it.
Model valid order status transitions with a backed PHP enum and Eloquent, no state machine package required.
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.