Validator
interface Validator implements MessageProvider (View source)
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.
errors()
Get all of the validation error messages.
Details
MessageBag
getMessageBag()
Get the messages for the instance.
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.
MessageBag
errors()
Get all of the validation error messages.