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', 'namespace' => $this->namespace, ], function ($router) { require app_path('Http/Routes/web.php'); }); } /** * Define the "api" routes for the application. * * These routes are typically stateless. * * @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'); }); } }