ValidatesWhenResolvedTrait
trait ValidatesWhenResolvedTrait (View source)
Provides default implementation of ValidatesWhenResolved contract.
Methods
void | validate() Validate the class instance. | |
Validator | getValidatorInstance() Get the validator instance for the request. | |
mixed | failedValidation(Validator $validator) Handle a failed validation attempt. | |
bool | passesAuthorization() Determine if the request passes the authorization check. | |
mixed | failedAuthorization() Handle a failed authorization attempt. |
Details
void validate()
Validate the class instance.
protected Validator getValidatorInstance()
Get the validator instance for the request.
protected mixed failedValidation(Validator $validator)
Handle a failed validation attempt.
protected bool passesAuthorization()
Determine if the request passes the authorization check.
protected mixed failedAuthorization()
Handle a failed authorization attempt.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.1/Illuminate/Validation/ValidatesWhenResolvedTrait.html