techouse / select-auto-complete

An auto-completing Laravel Nova search field
MIT License
31 stars 17 forks source link

beginner's question: how to use for e.g. MorphToMany::make('Tags') #36

Open wivaku opened 3 years ago

wivaku commented 3 years ago

I have Nova 3.30.0 and select-auto-complete.

I have e.g. Product and Tag resources for corresponding models. Tag is a polymorphic many-to-many relationship.

In my Product nova resource I have added MorphToMany::make('Tags') and I indeed see for a product the list of tags and the button to Attach Tag. When I attach a new tag it shows a regular select but would like to replace that with the select-auto-complete.

How do I achieve this?