RouteServiceProvider
class RouteServiceProvider extendsRouteServiceProvider
Properties
protectedstring | $namespace | This namespace is applied to your controller routes. |
Methods
void
boot()
Define your route model bindings, pattern filters, etc.
void
map()
Define the routes for the application.
void
mapWebRoutes()
Define the "web" routes for the application.
void
mapApiRoutes()
Define the "api" routes for the application.
Details
at line24
void
boot()
Define your route model bindings, pattern filters, etc.
at line46
void
map()
Define the routes for the application.
at line61
protectedvoid
mapWebRoutes()
Define the "web" routes for the application.
These routes all receive session state, CSRF protection, etc.
at line75
protectedvoid
mapApiRoutes()
Define the "api" routes for the application.
These routes are typically stateless.