class RouteServiceProvider extends RouteServiceProvider

Properties

protected string $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 line 24
void boot()

Define your route model bindings, pattern filters, etc.

Return Value

void

at line 36
void map()

Define the routes for the application.

Return Value

void

at line 52
protected void mapWebRoutes()

Define the "web" routes for the application.

These routes all receive session state, CSRF protection, etc.

Return Value

void

at line 69
protected void mapApiRoutes()

Define the "api" routes for the application.

These routes are typically stateless.

Return Value

void