메소드 |
설명 |
|
allTags ( ) : array |
Get an array of all tags used for the called class. |
|
allTagsList ( ) : string |
Get all the tags used for the called class as a delimited string. |
|
detag ( ) |
Remove all tags from the model. |
|
getTagArrayAttribute ( ) : array |
Get all tags of a Model as an array. |
|
getTagArrayNormalizedAttribute ( ) : array |
Get all normalized tags of a Model as an array. |
|
getTagListAttribute ( ) : string |
Get all tags of a Model as a string in which the tags are delimited
by the character defined in config('taggable.delimiters'). |
|
getTagListNormalizedAttribute ( ) : string |
Get all normalized tags of a Model as a string in which the tags are delimited
by the character defined in config('taggable.delimiters'). |
|
retag ( string | array $tags ) |
Remove all Tags from a Model and assign the given ones. |
|
scopeWithAllTags ( Builder $query, array | string $tags ) : Builder |
Scope for a Model that has all of the given tags. |
|
scopeWithAnyTags ( Builder $query, array $tags = [] ) : Builder |
Scope for a Model that has any of the given tags. |
|
scopeWithoutTags ( Builder $query ) : Builder |
Scope for a Model that doesn't have any tags. |
|
tag ( string | array $tags ) |
Attach one or multiple Tags to a Model. |
|
tags ( ) : Illuminate\Database\Eloquent\Relations\MorphToMany |
Get a collection of all Tags a Model has. |
|
untag ( string | array $tags ) |
Detach one or multiple Tags from a Model. |
|