interface
Illuminate
/
Contracts
/
Validation
/
Factory
You are viewing an older version of the documentation. For the latest, please visit master documentation.
Factory
Methods
public
make ( array $data , array $rules , array $messages , array $customAttributes ) : Validator
Create a new Validator instance.
Parameters
- $data array
- $rules array
- $messages array
- $customAttributes 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