Select::make('Tags', 'tag_id') ->searchable() ->options(\App\Tag::all()->pluck('name', 'id')) ->displayUsingLabels(),
Jan 8, 2021
5
Level 1
Prefilled searchable nova belongsto field
Hello,
is there a way, to use a nova BelongsTo field with the searchable method, but prepopulate / prefill the selectbox with the available options?
I mean, lets say I in my article resource, I have a BelongsTo field with users:
BelongsTo::make('User', 'user', User::class)->searchable();
if a user clicks on the field, he should not only see the search-input, but as well the list of available option, similar to if we wouldn't have used the searchable() method.
Please or to participate in this conversation.