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

ValidationRule

Methods

public

validate ( string $attribute , mixed $value , Closure $fail ) : void

Run the validation rule.

Parameters

  • $attribute string
  • $value mixed
  • $ Closure
    \Illuminate\Translation\PotentiallyTranslatedString $fail