Support the ongoing development of Laravel.io →
posted 4 years ago
Last updated 1 year ago.
0
moderator

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');
Last updated 4 years ago.
0

Now I figured it out - Thanks for your help :-)

tvbeek liked this reply

1

Sign in to participate in this thread!

Eventy

Your banner here too?

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.