/** * 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); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $icons = Icon::all(); $selected = Icon::find($id); return view('admin.contents.blog.icon.edit')->with('icons', $icons)->with('selected', $selected); }