blendbyte / nova-items-field

Laravel Nova array items field with sorting & validation
MIT License
13 stars 9 forks source link

feat: add support for laravel 6 and up validation #15

Closed bryansmit closed 4 months ago

bryansmit commented 4 months ago

When using this package in a nova 4.0^ project combined with Laravel version 9.0^. I could not use the validation rules functionality. This might help, since the interface name was changed in Laravel 6 iirc.

bashgeek commented 4 months ago

First of all: Thanks for your PR, it's appreciated.

The old Rule implementation (replaced with the newer ValidationRule in Laravel 10) acts quite a bit different, it's not done with simply replacing the interface (different methods, different logic). SInce Laravel 9 is EOL since earlier this year (although technically Nova is supporting Laravel 8+), it makes no sense to fall back to this factually deprecated logic.