class Illuminate / Foundation / Support / Providers / RouteServiceProvider
You are viewing an older version of the documentation. For the latest, please visit master documentation.

RouteServiceProvider

Extends

Uses

Properties

protected

$namespace string|null

The controller namespace for the application.

Default: null
protected

$loadRoutesUsing Closure |null

The callback that should be used to load the application's routes.

Default: null

Methods

public

register ( ) : void

Register any application services.

public

boot ( ) : void

Bootstrap any application services.

protected

routes ( Closure $routesCallback ) : $this

Register the callback that will be used to load the application's routes.

Parameters

protected

setRootControllerNamespace ( ) : void

Set the root controller namespace for the application.

protected

routesAreCached ( ) : bool

Determine if the application routes are cached.

protected

loadCachedRoutes ( ) : void

Load the cached routes for the application.

protected

loadRoutes ( ) : void

Load the application routes.

public

__call ( $method , $parameters ) : mixed

Pass dynamic methods onto the router instance.

Parameters

  • $method string
  • $parameters array