Select relationship with max one query
I'm trying to have a select menu with about 10 options queried from a database. Which are searchable for easy selection. However, on each keystroke the searchable queries the database which leads to high loading times. So I want it to only query once. Using options with a pluck() would work if I didn't need the relationship to save my data afterwards.
Does anyone have any suggestions to do this?
2 Replies