Method |
Description |
|
buildTagArray ( string | array $tags ) : array |
Convert a delimited string into an array of tag strings. |
|
buildTagArrayNormalized ( string | array $tags ) : array |
Convert a delimited string into an array of normalized tag strings. |
|
find ( string $tagName ) : Tag | null |
Find an existing tag by name. |
|
findOrCreate ( string $tagName ) : Tag |
Find an existing tag (or create a new one) by name. |
|
getAllTags ( Model | string $class ) : Illuminate\Database\Eloquent\Collection |
Get all Tags for the given class. |
|
joinList ( array $array ) : string |
Join a list of strings together using glue. |
|
makeTagArray ( Model $model, string $field = 'name' ) : array |
Build a simple array of a model's tags. |
|
makeTagList ( Model $model, string $field = 'name' ) : string |
Build a delimited string from a model's tags. |
|
normalize ( string $string ) : mixed |
Normalize a string. |
|