ziffmedia / nova-select-plus

A Laravel Nova Select Field
MIT License
91 stars 26 forks source link

Enhancement - Ability to create a new related item. #21

Open Slgoetz opened 3 years ago

Slgoetz commented 3 years ago

Love this inline relation field. I was thinking it would be awesome if you could make create a new relational item inline as well.

As an example: Say you are relating tags and you want to create a new one. Add a button to load in required fields in a modal, create the new item then add it as a relation.

ralphschindler commented 3 years ago

My initial inclination is that request is outside the scope of this component. Generally these related (pivot models) are simply id/name/timestamps, and other times they are in fact more than that (pivot columns included). They might have their own requirements for being created that would be hard to wrap up into a modal form.

In an ideal world, Nova somehow builds in the ability to launch "create forms" in modals, I think that would solve this problem.

It's def. something I'd be interested to see if there was as simple yet flexible solution for this.. I'd entertain this if someone wanted to get a PR going.