Documentation

RouteServiceProvider extends RouteServiceProvider
in package

Table of Contents

Properties

$name  : string

Methods

boot()  : void
Called before routes are registered.
map()  : void
Define the routes for the application.
mapApiRoutes()  : void
Define the "api" routes for the application.
mapWebRoutes()  : void
Define the "web" routes for the application.

Properties

Methods

boot()

Called before routes are registered.

public boot() : void

Register any model bindings or pattern based filters.

mapApiRoutes()

Define the "api" routes for the application.

protected mapApiRoutes() : void

These routes are typically stateless.

mapWebRoutes()

Define the "web" routes for the application.

protected mapWebRoutes() : void

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


        
On this page

Search results