PHP Интерфейс Esensi\Model\Contracts\SluggableModelInterface

Автор: Daniel LaBarge ([email protected])
Показать файл Открыть проект

Открытые методы

Метод Описание
getSlugAttribute ( ) : string Get the value assigned to the sluggable key.
getSlugKey ( ) : string Get the key that defines the model's sluggable attribute.
makeSlug ( string $value ) : string Convert the value into a slug using a regexp replacement.
setSlugAttribute ( string $value ) Mutate the value to a slug format and assign to the sluggable key.
setSlugKey ( string $key ) : Illuminate\Database\Eloquent\Model Set the key that defines the model's sluggable attribute.

Описание методов

getSlugAttribute() публичный Метод

Get the value assigned to the sluggable key.
public getSlugAttribute ( ) : string
Результат string

getSlugKey() публичный Метод

Get the key that defines the model's sluggable attribute.
public getSlugKey ( ) : string
Результат string

makeSlug() публичный Метод

Convert the value into a slug using a regexp replacement.
public makeSlug ( string $value ) : string
$value string
Результат string

setSlugAttribute() публичный Метод

Mutate the value to a slug format and assign to the sluggable key.
public setSlugAttribute ( string $value )
$value string

setSlugKey() публичный Метод

Set the key that defines the model's sluggable attribute.
public setSlugKey ( string $key ) : Illuminate\Database\Eloquent\Model
$key string
Результат Illuminate\Database\Eloquent\Model