ResourceType
Validates whether the input is a resource.
v::resourceType()->assert(fopen('/path/to/file.txt', 'r'));
// Validation passes successfully
Templates
ResourceType::TEMPLATE_STANDARD
| Mode |
Template |
default |
{{subject}} must be an internal resource |
inverted |
{{subject}} must not be an internal resource |
Template placeholders
| Placeholder |
Description |
subject |
The validated input or the custom validator name (if specified). |
Categorization
Changelog
| Version |
Description |
| 3.0.0 |
Templates changed |
| 1.0.0 |
Created |
See Also