프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$delimiter | string | The tags delimiter. | |
$slugGenerator | string | The Slug generator method. | |
$tagsModel | string | The Eloquent tags model name. |
메소드 | 설명 | |
---|---|---|
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 ) |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | string |
protected getEntityClassName ( ) : string | ||
리턴 | string |
public static scopeWhereTag ( |
||
$query |
public static scopeWithTag ( |
||
$query |
public static scopeWithoutTag ( |
||
$query |
protected static string $slugGenerator | ||
리턴 | string |
protected static string $tagsModel | ||
리턴 | string |