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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners