Closed Benoit1980 closed 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.
$validator = Validator::make($request->all(), [
'color' => ['required', 'hexcolor'],
]);
$validator = Validator::make($request->all(), [
'color' => ['required', new Hexcolor()],
]);
Thank you so much @olivervogel for your kind reply :-)
Hello,
I cannot find any updates on Laravel 6, did you drop its support for Laravel 6 please?
Thank you,