You can use the filter option from the collections https://laravel.com/docs/5.5/collections#method-filter I suspect that using the default function is enough.
$school_dropdowns = DB::table('dropdowns')->pluck('school_dropdown')->filter();
Else you can create a callback for your filter.
kevnk liked this reply
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community