Intervention / validation

Missing Laravel Validation Rules
https://validation.intervention.io
MIT License
590 stars 67 forks source link

Did you drop support for Laravel 6? #53

Closed Benoit1980 closed 2 years ago

Benoit1980 commented 2 years ago

Hello,

I cannot find any updates on Laravel 6, did you drop its support for Laravel 6 please?

Thank you,

olivervogel commented 2 years ago

All rules should still be working with Laravel 6. But please note that since version 3 it is only possible to pass the custom rules as objects and not as strings.

Version 2 Code

$validator = Validator::make($request->all(), [
    'color' => ['required', 'hexcolor'],
]);

Version 3 Code

$validator = Validator::make($request->all(), [
    'color' => ['required', new Hexcolor()],
]);
Benoit1980 commented 2 years ago

Thank you so much @olivervogel for your kind reply :-)