Can you show what you have? There isn't a big difference between Laravel 5, 6 and 7 in this cases so I'm interested where you are stuck.
It could be something like:
User::orderBy('name')->pluck('name', 'id');
Now I figured it out - Thanks for your help :-)
tvbeek liked this reply
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community