class RouteServiceProvider extends RouteServiceProvider

Properties

protected string $prefix 前缀 from  RouteServiceProvider
protected string $namespace

This namespace is applied to your controller routes.

Methods

__construct($app)

No description

void
boot()

Define your route model bindings, pattern filters, etc.

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

__construct($app)

No description

Parameters

$app

at line 22
void boot()

Define your route model bindings, pattern filters, etc.

Return Value

void

at line 31
void map()

Define the routes for the module.

Return Value

void

at line 43
protected void mapWebRoutes()

Define the "web" routes for the module.

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

Return Value

void

at line 59
protected void mapApiRoutes()

Define the "api" routes for the module.

These routes are typically stateless.

Return Value

void