/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $post = Post::all();
     return view('post.index', compact('post'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $posts = Post::all();
     return view('post.index')->with('posts', $posts);
 }