interface Validator implements MessageProvider (View source)
| MessageBag | getMessageBag() Get the messages for the instance. | from MessageProvider |
| array | validate() Run the validator's rules against its data. | |
| bool | fails() Determine if the data fails the validation rules. | |
| array | failed() Get the failed validation rules. | |
| $this | sometimes(string|array $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. |
Get the messages for the instance.
Run the validator's rules against its data.
Determine if the data fails the validation rules.
Get the failed validation rules.
Add conditions to a given field based on a Closure.
After an after validation callback.
Get all of the validation error messages.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.7/Illuminate/Contracts/Validation/Validator.html