示例#1
0
文件: Tag.php 项目: joaogl/tags
 /**
  * Get all tags for the called class as a string in which the tags are delimited
  * by the character defined in config('taggable.delimiters').
  *
  * @return string
  */
 public static function tagList()
 {
     return Util::joinArray(Util::getAllTags(get_called_class()));
 }
示例#2
0
文件: Tag.php 项目: kevin416/admin
 /**
  * Find a tag by its name.
  *
  * @param $name
  *
  * @return mixed
  */
 public static function findByName($name)
 {
     $normalized = Util::normalizeName($name);
     return static::where('normalized', $normalized)->first();
 }