Exemple #1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index(Request $request)
 {
     $tag = Tag::find($request->get('tag'));
     $tags = Tag::paginate(10);
     $parentTags = Tag::where('type', 'category')->where('parent_id', 0)->get();
     if (!$tag) {
         $tag = new Tag();
     }
     return view('cms::tag.tags', compact('tag', 'tags', 'parentTags'));
 }