mixed __call(string $method, array $parameters) Handle dynamic calls to class methods. Parameters string $method array $parameters Return Value mixed Exceptions BadMethodCallException
void validate() Run the validator's rules against its data. Return Value void Exceptions ValidationException
array valid() Returns the data which was valid. Return Value array
static void swap(mixed $instance) Hotswap the underlying instance behind the facade. Parameters mixed $instance Return Value void
void sometimes(string $attribute, string|array $rules, callable $callback) Add conditions to a given field based on a Closure. Parameters string $attribute string|array $rules callable $callback Return Value void
static Expectation shouldReceive() Initiate a mock expectation on the facade. Return Value Expectation
$this setValueNames(array $values) Set the custom values on the validator. Parameters array $values Return Value $this
void setTranslator(TranslatorInterface $translator) Set the Translator implementation. Parameters TranslatorInterface $translator Return Value void
$this setRules(array $rules) Set the validation rules. Parameters array $rules Return Value $this
Page 26 of 996