/** * Display a listing of the resource. * * @return Response */ public function index() { $tag = Tag::all(); return view('tags.index')->withTag($tag); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function tags() { $tags = Tag::all(); return view('tags', ['tags' => $tags]); }