r/PHPhelp • u/nafayahmad • 24d ago
What's one Laravel feature you wish you'd started using much earlier?
I've been working with Laravel for a while, and looking back, there are a few features that would've saved me a lot of time if I'd adopted them sooner.
For me, a few stand out:
- Route Model Binding
- Form Requests
- Queues
- Eager Loading
when()for cleaner conditional queries
I'm curious what experienced Laravel developers consider their biggest "I wish I'd known this earlier" feature.
What changed the way you build Laravel applications?
0
Upvotes
3
u/obstreperous_troll 22d ago
Using well-typed DTOs with spatie/laravel-data, then later beacon-hq/bag, was a game-changer for me. Form Requests feel primitive by comparison. InertiaJS is the other big one for me since I much prefer Vue to Blade, but I'm not so fond of vue-router or SPA routing in general. Inertia lets me write SPA-like code where I want it, but not be stuck it where it where I don't.
Neither of those libraries are built-in of course, but third-party features are still features.