Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Stopping On First Validation Failure

$request->validate([
    'title' => 'bail|required|unique:posts|max:255',
    'body' => 'required',
]);
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #Stopping #On #First #Validation #Failure
ADD COMMENT
Topic
Name
2+5 =