Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

valdidate laravel if falid

$validator = Validator::make($request->all(), [
    'name' => 'required|min:2|max:255'
]);

if ($validator->fails()) {
    return view('view_name');
} else {
    return view('view_name');
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #valdidate #laravel #falid
ADD COMMENT
Topic
Name
8+8 =