interface Illuminate / Contracts / Validation / Factory
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

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