Filtering Eloquent Models in Laravel
When you are trying to filter some data or making a search query, you have to decide how you want to implement the filtering on eloquent models. I usually ask myself, should I include filtering logic in Controllers?...
Using Scopes in Laravel

Using Scopes in Laravel

Sometimes you run into a situation when you have to reuse some of the conditions more often. Laravel provides a solution for wrapping your conditions into a readable and reusable statement, called Scopes. In this post, I'll show you how...
Page 1 of 1