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 Description
$separator
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 Description
$attribute
string
$value
mixed
Returns
bool

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

Inherited from Rule

Validation callback method.

Parameters
Property Description
$attribute
string
$value
mixed
$params
array
Returns
bool
Copyright © 2024 Winter CMS