示例#1
0
 /**
  * Show the application dashboard.
  *
  * @return Response
  */
 public function index()
 {
     $clients = Client::all();
     $projects = Project::all();
     $notes = ClientNote::all();
     return view('home')->with('clientCount', count($clients))->with('projectCount', count($projects))->with('noteCount', count($notes));
 }