middleware('auth'); } /** * Show the application dashboard. * * @return \Illuminate\Contracts\Support\Renderable */ public function index() { $tags = Tag::limit(5)->get(); $posts = BlogPost::all()->reverse(); return view('home', [ 'posts' => $posts, 'tags' => $tags ]); } }