RouteServiceProvider
class RouteServiceProvider extends RouteServiceProvider
Properties
protected string | $prefix | 前缀 | from RouteServiceProvider |
protected string | $namespace | This namespace is applied to your controller routes. |
Methods
void
map()
Define the routes for the module.
void
mapWebRoutes()
Define the "web" routes for the module.
void
mapApiRoutes()
Define the "api" routes for the module.
Details
in
RouteServiceProvider at line 19
__construct($app)
No description
at line 20
void
map()
Define the routes for the module.
at line 32
protected void
mapWebRoutes()
Define the "web" routes for the module.
These routes all receive session state, CSRF protection, etc.
at line 57
protected void
mapApiRoutes()
Define the "api" routes for the module.
These routes are typically stateless.