Support the ongoing development of Laravel.io →
Laravel Views Artisan
0

You can follow this or use this package. Basically, you need to:

  1. Retrieve the data from controller and pass to a view.
  2. Use loop to populate the options.
  3. Initialize Select2 or follow the W3 Schools tutorial.
Last updated 1 year ago.

boukharilina 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.