kirschbaum-development / nova-inline-relationship

A package to present relationships as inline properties in Nova.
MIT License
196 stars 84 forks source link

Validation for HasMany Relation not working properly #116

Open sagadsalem opened 1 year ago

sagadsalem commented 1 year ago

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?

harrysbaraini commented 8 months ago

@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.