Answers for "how to return array with validator in laravel"

PHP
3

email validation in laravel

'email' => 'required|email|unique:users,email',
//@sujay
Posted by: Guest on October-09-2020
2

validate each value from array laravel

$validator = Validator::make($request->all(), [
    "names"    => "required|array|min:3",
    "names.*"  => "required|string|distinct|min:3",
]);
Posted by: Guest on November-12-2020

Code answers related to "how to return array with validator in laravel"

Browse Popular Code Answers by Language