📌  相关文章
📜  laravel 验证获取失败规则 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:57.645000             🧑  作者: Mango

代码示例1
if ($validator->fails()) {

    $failedRules = $validator->failed();

    if(isset($failedRules['email_address']['Unique'])) {
        //Your code here
    }
}