Select first item
Hey,
I would like to select the first option item, but somehow it isn't working as expected. UI wise, I get the result when I use
->selectablePlaceholder(false)
. But the form throws a validation required error on that field.
What am I doing wrong?
Bye2 Replies
Maybe
modifyQueryUsing: fn (Builder $query) => $query->whereHas('users', fn ($q) => $q->where('user_id', auth()->id()))->orderBy('title')->first()
Thank you.
Isn't it possible to get the options data, without doing a second query?
I think they are already loaded and it should't be necessary to load it again.