interface Illuminate / Contracts / Validation / InvokableRule

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