laravel validation get failed rules

Solutions on MaxInterview for laravel validation get failed rules by the best coders in the world

showing results for - "laravel validation get failed rules"
Paolo
26 Aug 2017
1if ($validator->fails()) {
2
3    $failedRules = $validator->failed();
4
5    if(isset($failedRules['email_address']['Unique'])) {
6		//Your code here
7    }
8}