/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $article = Article::find($id); $icons = Icon::all(); $tags = Tag::all(); return view('admin.contents.blog.article.edit')->with('article', $article)->with('icons', $icons)->with('tags', $tags); }
/** * Tagの一覧表示 * * @return Response */ public function getTagAll() { $tags = Tag::all(); return view('contents.blog.tag.all')->with('tags', $tags)->with('title', 'Tag'); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $tags = Tag::all(); $selected = Tag::find($id); return view('admin.contents.blog.tag.edit')->with('tags', $tags)->with('selected', $selected); }