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

InvokableRule

Methods

public

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

Run the validation rule.

Parameters

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