HandleSlugs
trait HandleSlugs (View source)
Methods
void
void
void
array
array
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
void
afterDeleteHandleSlugs(TwillModelContract $object)
No description
void
afterRestoreHandleSlugs(TwillModelContract $object)
No description
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