nova-inline-relationship
nova-inline-relationship copied to clipboard
Validation for HasMany Relation not working properly
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 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.