Terry Tan
Terry Tan

Reputation: 441

Laravel Nova - How can i do custom logic on Create/Update

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:

Upvotes: 0

Views: 2538

Answers (1)

Paras
Paras

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

Related Questions