middleware('auth'); } /** * Show the application dashboard. * * @return \Illuminate\Contracts\Support\Renderable */ public function index() { return view('home', [ 'blogPosts' => BlogPost::all() ]); } }