/** * 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); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy(DestroyRequest $request, $id) { Icon::destroy($id); return redirect()->route('admin.blog.icon.index')->with('success', 'アイコンを削除しました。'); }