trait HandleSlugs (View source)

Methods

void
beforeSaveHandleSlugs(TwillModelContract $object, array $fields)

No description

void
afterDeleteHandleSlugs(TwillModelContract $object)

No description

void
array
getFormFieldsHandleSlugs(TwillModelContract $model, array $fields)

No description

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

No description

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

No description

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

No description

Details

void beforeSaveHandleSlugs(TwillModelContract $object, array $fields)

No description

Parameters

TwillModelContract $object
array $fields

Return Value

void

void afterDeleteHandleSlugs(TwillModelContract $object)

No description

Parameters

TwillModelContract $object

Return Value

void

void afterRestoreHandleSlugs(TwillModelContract $object)

No description

Parameters

TwillModelContract $object

Return Value

void

array getFormFieldsHandleSlugs(TwillModelContract $model, array $fields)

No description

Parameters

TwillModelContract $model
array $fields

Return Value

array

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

No description

Parameters

TwillModelContract $object
array $fields
array $slug

Return Value

array

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

No description

Parameters

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

Return Value

TwillModelContract|null

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

No description

Parameters

string $slug
array $with
array $withCount

Return Value

TwillModelContract|null