Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel validation array

$data = $request->validate([
    "name"    => "required|array|min:3",
    "name.*"  => "required|string",
]);
 
PREVIOUS NEXT
Tagged: #laravel #validation #array
ADD COMMENT
Topic
Name
3+6 =