Documentation

RouteServiceProvider extends RouteServiceProvider
in package

Class RouteServiceProvider

Table of Contents

HOME  = '/home'
The path to the "home" route for your application.
$namespace  : string
This namespace is applied to your controller routes.
boot()  : void
Define your route model bindings, pattern filters, etc.
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.

Constants

Properties

$namespace

This namespace is applied to your controller routes.

protected string $namespace = 'App\Http\Controllers'

In addition, it is set as the URL generator's root namespace.

Methods

boot()

Define your route model bindings, pattern filters, etc.

public boot() : void
Return values
void

mapApiRoutes()

Define the "api" routes for the application.

protected mapApiRoutes() : void

These routes are typically stateless.

Return values
void

mapWebRoutes()

Define the "web" routes for the application.

protected mapWebRoutes() : void

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

Return values
void

Search results