/** * Display a listing of the resource. * * @return Response */ public function index() { $counts = array(); $counts['article_total'] = \Article::count(); $counts['category_total'] = \Category::count(); $counts['user_total'] = \User::count(); $counts['page_total'] = \Page::count(); return View::make('admin.index.index')->with('counts', $counts); }