ValidatesWhenResolvedTrait
trait ValidatesWhenResolvedTrait (View source)
Provides default implementation of ValidatesWhenResolved contract.
Methods
void
validateResolved()
Validate the class instance.
void
prepareForValidation()
Prepare the data for validation.
getValidatorInstance()
Get the validator instance for the request.
void
passedValidation()
Handle a passed validation attempt.
void
bool
passesAuthorization()
Determine if the request passes the authorization check.
void
failedAuthorization()
Handle a failed authorization attempt.
Details
void
validateResolved()
Validate the class instance.
protected void
prepareForValidation()
Prepare the data for validation.
protected Validator
getValidatorInstance()
Get the validator instance for the request.
protected void
passedValidation()
Handle a passed validation attempt.
protected void
failedValidation(Validator $validator)
Handle a failed validation attempt.
protected bool
passesAuthorization()
Determine if the request passes the authorization check.
protected void
failedAuthorization()
Handle a failed authorization attempt.