$namespace $namespace : string This namespace is applied to your controller routes. In addition, it is set as the URL generator's root namespace. Type string
mapWebRoutes() mapWebRoutes() : void Define the "web" routes for the application. These routes all receive session state, CSRF protection, etc.
mapApiRoutes() mapApiRoutes() : void Define the "api" routes for the application. These routes are typically stateless.