/** * Display a listing of the resource. * * @return Response */ public function index() { $posts = Post::all(); return view('posts.index', ['posts' => $posts]); }