Slug
class Winter\Storm\Validation\Rules\Slug
extends Winter\Storm\Validation\Rule
implements
Illuminate\Contracts\Validation\Rule
Extends
Class | Description |
---|---|
Rule
|
Properties
protected
$separator
:
string
= "-"
The separator to be used when generating the slug
Methods
public
__construct (string $separator = "-"
)
Parameters
Property | Type | Description |
---|---|---|
$separator | string |
string
|
Returns
mixed
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
inherited public validate (string $attribute, mixed $value, array $params) : bool
Inherited from
Rule
Validation callback method.
Parameters
Property | Type | Description |
---|---|---|
$attribute | string |
string
|
$value | mixed |
mixed
|
$params | array |
array
|
Returns
bool
← Previous page
Winter\Storm\Validation\Rule
Next page →
Winter\Storm\Validation\ValidationServiceProvider
Copyright © 2024 Winter CMS