StringType()
Validates whether the type of an input is string or not.
v::stringType()->assert('hi');
// Validation passes successfully| Mode | Template |
|---|---|
default |
{{subject}} must be a string |
inverted |
{{subject}} must not be a string |
| Placeholder | Description |
|---|---|
subject |
The validated input or the custom validator name (if specified). |
- Strings
- Types
| Version | Description |
|---|---|
| 1.0.0 | Renamed from String to StringType |
| 0.3.9 | Created as String |