프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$slugOptions |
메소드 | 설명 | |
---|---|---|
generateSlug ( ) | Handle setting slug on explicit request. | |
getSlugOptions ( ) : |
Get the options for generating the slug. |
메소드 | 설명 | |
---|---|---|
addSlug ( ) | Add the slug to the model. | |
bootHasSlug ( ) | Boot the trait. | |
generateNonUniqueSlug ( ) : string | Generate a non unique slug for this record. | |
generateSlugOnCreate ( ) | Handle adding slug on model creation. | |
generateSlugOnUpdate ( ) | Handle adding slug on model update. | |
getSlugSourceString ( ) : string | Get the string that should be used as base for the slug. | |
guardAgainstInvalidSlugOptions ( ) | This function will throw an exception when any of the options is missing or invalid. | |
hasCustomSlugBeenUsed ( ) : boolean | Determine if a custom slug has been saved. | |
makeSlugUnique ( string $slug ) : string | Make the given slug unique. | |
otherRecordExistsWithSlug ( string $slug ) : boolean | Determine if a record exists with the given slug. |
protected generateNonUniqueSlug ( ) : string | ||
리턴 | string |
protected generateSlugOnCreate ( ) |
protected generateSlugOnUpdate ( ) |
abstract public getSlugOptions ( ) : |
||
리턴 |
protected getSlugSourceString ( ) : string | ||
리턴 | string |
protected guardAgainstInvalidSlugOptions ( ) |
protected hasCustomSlugBeenUsed ( ) : boolean | ||
리턴 | boolean |
protected makeSlugUnique ( string $slug ) : string | ||
$slug | string | |
리턴 | string |
protected otherRecordExistsWithSlug ( string $slug ) : boolean | ||
$slug | string | |
리턴 | boolean |