before( function (Request $request) { // put IP in session if not already there. $reminders = []; if ($request->user()) { //Filter::setSessionDateRange(); //Reminders::updateReminders(); //Steam::removeEmptyBudgetLimits(); //$reminders = Reminders::getReminders(); } // View::share('reminders', $reminders); } ); } /** * Define the routes for the application. * * @param \Illuminate\Routing\Router $router * * @return void */ public function map(Router $router) { $router->group( ['namespace' => $this->namespace], function ($router) { /** @noinspection PhpIncludeInspection */ require app_path('Http/routes.php'); } ); } }