Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel validation get failed rules

if ($validator->fails()) {

    $failedRules = $validator->failed();

    if(isset($failedRules['email_address']['Unique'])) {
		//Your code here
    }
}
 
PREVIOUS NEXT
Tagged: #laravel #validation #failed #rules
ADD COMMENT
Topic
Name
8+9 =