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