trait HandleSlugs (View source)

Methods

void
afterSaveHandleSlugs(Model $object, array $fields)

No description

void
afterDeleteHandleSlugs(Model $object)

No description

void
afterRestoreHandleSlugs(Model $object)

No description

array
getFormFieldsHandleSlugs(Model $object, array $fields)

No description

array
getSlugParameters(Model $object, array $fields, array $slug)

No description

Model|null
forSlug(string $slug, array $with = [], array $withCount = [], array $scopes = [])

No description

forSlugPreview(string $slug, array $with = [], array $withCount = [])

No description

Details

void afterSaveHandleSlugs(Model $object, array $fields)

No description

Parameters

Model $object
array $fields

Return Value

void

void afterDeleteHandleSlugs(Model $object)

No description

Parameters

Model $object

Return Value

void

void afterRestoreHandleSlugs(Model $object)

No description

Parameters

Model $object

Return Value

void

array getFormFieldsHandleSlugs(Model $object, array $fields)

No description

Parameters

Model $object
array $fields

Return Value

array

array getSlugParameters(Model $object, array $fields, array $slug)

No description

Parameters

Model $object
array $fields
array $slug

Return Value

array

Model|null forSlug(string $slug, array $with = [], array $withCount = [], array $scopes = [])

No description

Parameters

string $slug
array $with
array $withCount
array $scopes

Return Value

Model|null

Model forSlugPreview(string $slug, array $with = [], array $withCount = [])

No description

Parameters

string $slug
array $with
array $withCount

Return Value

Model