Added a missing parenthesis and semicolon.
This commit is contained in:
parent
1503aed7ce
commit
eb76c34cd3
|
@ -417,7 +417,7 @@ #### Registering a custom validation rule:
|
|||
Validator::register('awesome', function($attribute, $value, $parameters)
|
||||
{
|
||||
return $value == $parameters[0];
|
||||
}
|
||||
});
|
||||
|
||||
In this case, the parameters argument of your validation rule would receive an array containing one element: "yes".
|
||||
|
||||
|
|
Loading…
Reference in New Issue