interface
Illuminate
/
Contracts
/
Validation
/
Factory
Factory
Methods
public
make ( array $data , array $rules , array $messages , array $attributes ) : Validator
Create a new Validator instance.
Parameters
- $data array
- $rules array
- $messages array
- $attributes array
public
extend ( $rule , $extension , $message ) : void
Register a custom validator extension.
Parameters
- $rule string
- $extension Closure |string
- $message string|null
public
extendImplicit ( $rule , $extension , $message ) : void
Register a custom implicit validator extension.
Parameters
- $rule string
- $extension Closure |string
- $message string|null
public
replacer ( $rule , $replacer ) : void
Register a custom implicit validator message replacer.
Parameters
- $rule string
- $replacer Closure |string