Description
Easily filter eloquent models using arrays - great for filtering from http requests.
class Product extends Model implements IsFilterable{ use Filterable; public function allowedFilters(): AllowedFilterList { return Filter::only( Filter::field('name', [FilterType::EQUAL]), ); }} $products = Product::filter([ [ 'target' => 'name', 'type' => '$eq', 'value' => 'TV' ]])->get();
Recent Courses on Laravel Daily
NativePHP Mobile v4 with SuperNative: Mini-Course
5 lessons
18 min
Marketing for Developers in 2026
7 lessons
52 min
Next.js Basics for Laravel Developers
11 lessons
58 min