CompiledRouteCollection
Extends
Properties
$compiled array
The compiled routes collection.
$attributes array
An array of the route attributes keyed by name.
$routes RouteCollection |null
The dynamically added routes that were added after loading the cached, compiled routes.
Methods
__construct ( array $compiled , array $attributes ) : void
Create a new CompiledRouteCollection instance.
Parameters
- $compiled array
- $attributes array
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
requestWithoutTrailingSlash ( Request $request ) : Request
Get a cloned instance of the given request without any trailing slash on the URI.
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.
newRoute ( array $attributes ) : Route
Resolve an array of attributes to a Route instance.
Parameters
- $attributes array