ValidatesWhenResolvedTrait
trait ValidatesWhenResolvedTrait
Provides default implementation of ValidatesWhenResolved contract.
Methods
void
validate()
Validate the class instance.
void
prepareForValidation()
Prepare the data for validation.
getValidatorInstance()
Get the validator instance for the request.
void
bool
passesAuthorization()
Determine if the request passes the authorization check.
void
failedAuthorization()
Handle a failed authorization attempt.
Details
at line 15
void
validate()
Validate the class instance.
at line 33
protected void
prepareForValidation()
Prepare the data for validation.
at line 43
protected Validator
getValidatorInstance()
Get the validator instance for the request.
at line 56
protected void
failedValidation(Validator $validator)
Handle a failed validation attempt.
at line 66
protected bool
passesAuthorization()
Determine if the request passes the authorization check.
at line 82
protected void
failedAuthorization()
Handle a failed authorization attempt.