Filtering Eloquent Models in Laravel with Eloquent Filter
php - filtering foreach data with Laravel - Stack Overflow
GitHub - san4io/eloquent-filter: Laravel Eloquent Filterable Trait. Define how to filter your model attributes. Pass request or array to filter out your Eloquent model.
Laravel 5 Collections: Filtering a Collection Based On Key Presence With whereIn - Stillat