/** * Show the application dashboard. * * @return \Illuminate\Http\Response */ public function dashboard() { return view('home')->with('eventCount', Events::where('UserID', Auth::User()->id)->get()->count())->with('todoCount', Todo::where('user_id', Auth::User()->id)->get()->count()); }