ValidatesWhenResolvedTrait
Provides default implementation of ValidatesWhenResolved contract.
Table of Contents
- validate() : void
- Validate the class instance.
- failedAuthorization() : void
- Handle a failed authorization attempt.
- failedValidation() : void
- Handle a failed validation attempt.
- getValidatorInstance() : Validator
- Get the validator instance for the request.
- passesAuthorization() : bool
- Determine if the request passes the authorization check.
- prepareForValidation() : void
- Prepare the data for validation.
Methods
validate()
Validate the class instance.
public
validate() : void
Return values
void —failedAuthorization()
Handle a failed authorization attempt.
protected
failedAuthorization() : void
Tags
Return values
void —failedValidation()
Handle a failed validation attempt.
protected
failedValidation(Validator $validator) : void
Parameters
- $validator : Validator
Tags
Return values
void —getValidatorInstance()
Get the validator instance for the request.
protected
getValidatorInstance() : Validator
Return values
Validator —passesAuthorization()
Determine if the request passes the authorization check.
protected
passesAuthorization() : bool
Return values
bool —prepareForValidation()
Prepare the data for validation.
protected
prepareForValidation() : void