示例#1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $tags = $this->tag->all();
     $config = $this->config->get('asgard.tags.config');
     return view('tags::admin.index', compact('tags', 'config'));
 }
示例#2
0
 public function all()
 {
     $tags = $this->tag->all();
     return ['count' => $tags->count(), 'data' => $tags];
 }