You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validates if the input is countable, in other words, if you're allowed to use
count() function on it.
v::countable()->assert([]);
// Validation passes successfully
v::countable()->assert(newArrayObject());
// Validation passes successfully
v::countable()->assert('string');
// → "string" must be a countable value
Templates
Countable::TEMPLATE_STANDARD
Mode
Template
default
{{subject}} must be a countable value
inverted
{{subject}} must not be a countable value
Template placeholders
Placeholder
Description
subject
The validated input or the custom validator name (if specified).