Reputation: 441
I would like to create custom Create/Update logic for one of my Nova Resource
. I have been thinking to use Custom Tools
to accomplish what i wanted, but i don't want to give up the excellent work in the Index
page and rewrite it all myself.
My use case:
morphToMany
selection input in the form.Upvotes: 0
Views: 2538
Reputation: 9465
If you want to use different components on the index vs form/detail page just use the hideFromIndex
and onlyOnIndex
functions.
Detailed reference to docs: https://nova.laravel.com/docs/1.0/resources/fields.html#showing-hiding-fields
If you want to build repetitive fields, you can use the package: https://packagist.org/packages/fourstacks/nova-repeatable-fields
Upvotes: 2