nova-inline-relationship icon indicating copy to clipboard operation
nova-inline-relationship copied to clipboard

Validation for HasMany Relation not working properly

Open sagadsalem opened this issue 1 year ago • 2 comments

On the following code. I am using hasMany with inline relation. But when I add validation on fields in "ProductAddons". It is not working.

// Bundle Resource HasMany::make('Addons', 'addons', \App\Nova\ProductAddons::class) ->inline(),

//BundlePublications Resource Number::make('Price', 'qty')->rules('required'),

is anything wrong or it's some kind of bug?

sagadsalem avatar Mar 25 '23 20:03 sagadsalem

@sagadsalem What nova version are you using? It seems that depending on the Nova version, NovaRequest was split in multiple Request classes so we can't use app(NovaRequest::class) and get if it is an update or create action.

harrysbaraini avatar Dec 21 '23 21:12 harrysbaraini