PHP 인터페이스 Esensi\Model\Contracts\SluggableModelInterface

저자: Daniel LaBarge ([email protected])
파일 보기 프로젝트 열기: esensi/model

공개 메소드들

메소드 설명
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