Laravel Facet Filter is an awesome package that provides simple facet filtering in Laravel projects. Publish and run the migrations php artisan vendor:publish --tag="facet-filter-migrations" php artisan migrate For all models that should support facet filtering, add a Facettable trait and a defineFacets() method.

Apply facet filtering to a query

[(object)[ 'value' => 'Red' 'selected' => false, 'total' => 3 'slug' => 'color_red' ], (object)[ 'value' => 'Green' 'selected' => true 'total' => 2 'slug' => 'color_green' ] */
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners