Property | Type | Description | |
---|---|---|---|
$delimiter | string | The tags delimiter. | |
$slugGenerator | string | The Slug generator method. | |
$tagsModel | string | The Eloquent tags model name. |
Method | Description | |
---|---|---|
addTag ( $name ) | ||
allTags ( ) | ||
createTagsModel ( ) | ||
getSlugGenerator ( ) | ||
getTagsDelimiter ( ) | ||
getTagsModel ( ) | ||
prepareTags ( $tags ) | ||
removeTag ( $name ) | ||
scopeWhereTag ( |
||
scopeWithTag ( |
||
scopeWithoutTag ( |
||
setSlugGenerator ( $slugGenerator ) | ||
setTags ( $tags, $type = 'name' ) | ||
setTagsDelimiter ( $delimiter ) | ||
setTagsModel ( $model ) | ||
tag ( $tags ) | ||
tags ( ) | ||
untag ( $tags = null ) |
Method | Description | |
---|---|---|
generateTagSlug ( string $name ) : string | Generate the tag slug using the given name. | |
getEntityClassName ( ) : string | Returns the entity class name. |
protected generateTagSlug ( string $name ) : string | ||
$name | string | |
return | string |
protected getEntityClassName ( ) : string | ||
return | string |
public static scopeWhereTag ( |
||
$query |
public static scopeWithTag ( |
||
$query |
public static scopeWithoutTag ( |
||
$query |
protected static string $delimiter | ||
return | string |
protected static string $slugGenerator | ||
return | string |
protected static string $tagsModel | ||
return | string |