class
Illuminate
/
Foundation
/
Support
/
Providers
/
RouteServiceProvider
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
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
- $routesCallback Closure
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