Factory
interface Factory (View source)
Methods
Validator | make(array $data, array $rules, array $messages = [], array $customAttributes = []) Create a new Validator instance. | |
void | extend(string $rule, Closure|string $extension, string $message = null) Register a custom validator extension. | |
void | extendImplicit(string $rule, Closure|string $extension, string $message = null) Register a custom implicit validator extension. | |
void | replacer(string $rule, Closure|string $replacer) Register a custom implicit validator message replacer. |
Details
Validator make(array $data, array $rules, array $messages = [], array $customAttributes = [])
Create a new Validator instance.
void extend(string $rule, Closure|string $extension, string $message = null)
Register a custom validator extension.
void extendImplicit(string $rule, Closure|string $extension, string $message = null)
Register a custom implicit validator extension.
void replacer(string $rule, Closure|string $replacer)
Register a custom implicit validator message replacer.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.7/Illuminate/Contracts/Validation/Factory.html