/**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     $post = Post::find($id);
     $post->delete();
     return Redirect::to('post');
 }
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     $post = \Post::find(1);
     return view('posts.detail', compact('post'));
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $tag = Post::find($id);
     if ($tag->delete()) {
         return response()->json(array('error' => false, 'message' => 'Tag has been deleted.'), 200);
     } else {
         return response()->json(array('error' => false, 'message' => 'Tag has not been deleted.'), 200);
     }
 }