middleware('auth'); $this->middleware('range'); //$this->middleware('guest'); } /** * Show the application dashboard to the user. * * @return Response */ public function index() { // count is fake $count = \Auth::user()->accounts()->accountTypeIn(['Asset account', 'Default account'])->count(); $title = 'Firefly'; $subTitle = 'What\'s playing?'; $mainTitleIcon = 'fa-fire'; $transactions = []; return view('index', compact('count', 'title', 'subTitle', 'mainTitleIcon','transactions')); } }