Laravel Pro Tips
#eloquent #refactor
🔥 #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
#refactor
Some ways to refactor if condition in Laravel.
The Laravel Dev
No articles were found.