🔥 Laravel Tip: Relationships filtering
Apr 8, 2022
For people new to eloquent.
When you want to filter a relationship, make sure to call it a method, otherwise, you're loading all the models into memory and then filtering.
Instead, you want to do the filtering in the database layer.
When you want to filter a relationship, make sure to call it a method, otherwise, you're loading all the models into memory and then filtering.
Instead, you want to do the filtering in the database layer.
Other tips:
Laravel Tip: Auto-completion in artisan commands
Aug 23, 2022
🔥 Laravel Tip: Streaming Results Lazily
Apr 2, 2022
🔥 Laravel Tip: Temporary Signed routes
Apr 2, 2022