DataValidator
- Full name:
\Codefy\Framework\Validation\DataValidator
Methods
all
Return all input data as an array.
only
Replace internal data with only the specified keys.
Parameters:
| Parameter | Type | Description |
|---|---|---|
$keys | string[] |
except
Replace internal data excluding the specified keys.
Parameters:
| Parameter | Type | Description |
|---|---|---|
$keys | string[] |
validated
Validate the request data and return validated data.
Throws:
value
Return validated or filtered value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
$value | mixed | |
$default | mixed|null |
Throws:
errors
Return validation errors.