Laravel Pro Tips
🔥 #Laravel Tip: Eloquent provides a ‘withCount’ method, but it uses a sub-query, which can be up to 8 times slower (or more in some cases) than using a leftJoin & groupBy. Refactoring only requires a few changes and can make a big difference…
Matt Kingshott 🏝
Some ways to refactor if condition in Laravel.
The Laravel Dev
No articles were found.