Factory
interface Factory (View source)
Methods
make(array $data, array $rules, array $messages = [], array $customAttributes = [])
Create a new Validator instance.
void
void
extendImplicit(string $rule, Closure|string $extension, string|null $message = null)
Register a custom implicit validator extension.
Details
Validator
make(array $data, array $rules, array $messages = [], array $customAttributes = [])
Create a new Validator instance.
void
extend(string $rule, Closure|string $extension, string|null $message = null)
Register a custom validator extension.
void
extendImplicit(string $rule, Closure|string $extension, string|null $message = null)
Register a custom implicit validator extension.
void
replacer(string $rule, Closure|string $replacer)
Register a custom implicit validator message replacer.