static mixed __callStatic(string $method, array $args) Handle dynamic, static calls to the object. Parameters string $method array $args Return Value mixed
array valid() Returns the data which was valid. Return Value array
void validate() Run the validator's rules against its data. Return Value void Exceptions ValidationException
static void swap(mixed $instance) Hotswap the underlying instance behind the facade. Parameters mixed $instance Return Value void
$this setValueNames(array $values) Set the custom values on the validator. Parameters array $values Return Value $this
static Expectation shouldReceive() Initiate a mock expectation on the facade. Return Value Expectation
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
void setTranslator(TranslatorInterface $translator) Set the Translator implementation. Parameters TranslatorInterface $translator Return Value void
$this setData(array $data) Set the data under validation. Parameters array $data Return Value $this
Page 26 of 996