Rule

abstract class Winter\Storm\Validation\Rule
implements 
    Illuminate\Contracts\Validation\Rule

Methods

public message () : string

Get the validation error message.

Returns
string

public passes (string $attribute, mixed $value) : bool

Determine if the validation rule passes.

Parameters
Property Description
$attribute
string
$value
mixed
Returns
bool

public validate (string $attribute, mixed $value, array $params) : bool

Validation callback method.

Parameters
Property Description
$attribute
string
$value
mixed
$params
array
Returns
bool

Extended by

Class Description
Slug
Copyright © 2024 Winter CMS