InputValidationAware
- Full name:
\Codefy\Framework\Traits\InputValidationAware
Methods
validateResolved
Validate the class instance.
Throws:
prepareForValidation
Prepare the data for validation.
getValidatorInstance
Get the validator instance for the request.
Throws:
passedValidation
Handle a passed validation attempt.
passesAuthorization
Determine if the request passes the authorization check.
failedValidation
Handle a failed validation attempt.
Parameters:
| Parameter | Type | Description |
|---|---|---|
$message | ?string | |
$code | int |
Throws:
failedAuthorization
Throws: