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 | Type | Description |
---|---|---|
$attribute | string |
string
|
$value | mixed |
mixed
|
Returns
bool
public validate (string $attribute, mixed $value, array $params) : bool
Validation callback method.
Parameters
Property | Type | Description |
---|---|---|
$attribute | string |
string
|
$value | mixed |
mixed
|
$params | array |
array
|
Returns
bool
Extended by
Class | Description |
---|---|
Slug
|
Copyright © 2024 Winter CMS