コード例 #1
0
ファイル: ContentRepository.php プロジェクト: jetango/yascmf
 /**
  * 获取所有Meta元数据
  *
  * @param  string $type 元模型类型 分类category,标签tag
  * @return Illuminate\Support\Collection
  */
 public function meta($type = 'category')
 {
     if ($type === 'tag') {
         $metas = $this->meta->tag()->get();
     } else {
         $metas = $this->meta->category()->get();
     }
     return $metas;
 }