Support the ongoing development of Laravel.io →
Laravel Eloquent Database
Last updated 1 year ago.
0
moderator

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

1

Sign in to participate in this thread!

Eventy

Your banner here too?

ak ak Joined 1 Nov 2017

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.