RouteCollection
Extends
Properties
$routes array
An array of the routes keyed by method.
$allRoutes Illuminate\...\Route[]
A flattened array of all of the routes.
$nameList Illuminate\...\Route[]
A look-up table of routes by their names.
$actionList Illuminate\...\Route[]
A look-up table of routes by controller action.
Methods
addToCollections ( $route ) : void
Add the given route to the arrays of routes.
Parameters
- $route Route
addLookups ( $route ) : void
Add the route to any look-up tables if necessary.
Parameters
- $route Route
addToActionList ( $action , $route ) : void
Add a route to the controller action dictionary.
Parameters
- $action array
- $route Route
refreshNameLookups ( ) : void
Refresh the name look-up table.
refreshActionLookups ( ) : void
Refresh the action look-up table.
match ( Request $request ) : Route
Find the first route matching a given request.
Parameters
- $request Request
get ( $method ) : Illuminate\...\Route[]
Get routes from the collection by method.
Parameters
- $method string|null
hasNamedRoute ( $name ) : bool
Determine if the route collection contains a given named route.
Parameters
- $name string
getByAction ( $action ) : Route |null
Get a route instance by its controller action.
Parameters
- $action string
getRoutes ( ) : Illuminate\...\Route[]
Get all of the routes in the collection.
getRoutesByMethod ( ) : array
Get all of the routes keyed by their HTTP verb / method.
getRoutesByName ( ) : Illuminate\...\Route[]
Get all of the routes keyed by their name.
toSymfonyRouteCollection ( ) : Symfony\...\RouteCollection
Convert the collection to a Symfony RouteCollection instance.
toCompiledRouteCollection ( Router $router , Container $container ) : CompiledRouteCollection
Convert the collection to a CompiledRouteCollection instance.