Validator
interface Validator implements MessageProvider
Methods
bool
fails()
Determine if the data fails the validation rules.
array
failed()
Get the failed validation rules.
$this
sometimes(string $attribute, string|array $rules, callable $callback)
Add conditions to a given field based on a Closure.
$this
after(callable|string $callback)
After an after validation callback.
Details
in
MessageProvider at line 12
MessageBag
getMessageBag()
Get the messages for the instance.
at line 14
bool
fails()
Determine if the data fails the validation rules.
at line 21
array
failed()
Get the failed validation rules.
at line 31
$this
sometimes(string $attribute, string|array $rules, callable $callback)
Add conditions to a given field based on a Closure.
at line 39
$this
after(callable|string $callback)
After an after validation callback.