mapSetupRoutes($router); $this->mapStaticRoutes($router); $this->mapWebRoutes($router); event(new ConfigureRoutes($router)); } /** * Define the "web" routes for the application. * * These routes all receive session state, CSRF protection, etc. * * @param \Illuminate\Routing\Router $router * @return void */ protected function mapWebRoutes(Router $router) { $router->group([ 'middleware' => ['web', CheckSessionUserValid::class], 'namespace' => $this->namespace, ], function ($router) { require app_path('Http/Routes/web.php'); }); } /** * Define the "setup" routes for the application. * * The routes for setup wizard. * * @param \Illuminate\Routing\Router $router * @return void */ protected function mapSetupRoutes(Router $router) { $router->group([ 'middleware' => 'web', 'namespace' => $this->namespace, ], function ($router) { require app_path('Http/Routes/setup.php'); }); } /** * Define the "static" routes for the application. * * These routes will not load session, etc. * * @param \Illuminate\Routing\Router $router * @return void */ protected function mapStaticRoutes(Router $router) { $router->group([ 'middleware' => 'static', 'namespace' => $this->namespace, ], function ($router) { require app_path('Http/Routes/static.php'); }); } }