Свойство | Тип | Описание | |
---|---|---|---|
$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 |