interface Illuminate / Contracts / Validation / ValidationRule

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