Fetching data from database to show in options in select2

Posted 4 months ago by Hourlee

I have a form - a dropdown which I use select2. I want to search and select a name that is in database. I'm using axios to get data but I do not know how to display the name in the dropdown.

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.