interface
Illuminate
/
Routing
/
RouteCollectionInterface
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
RouteCollectionInterface
Methods
public
refreshNameLookups ( ) : void
Refresh the name look-up table.
public
refreshActionLookups ( ) : void
Refresh the action look-up table.
public
match ( Request $request ) : Route
Find the first route matching a given request.
Parameters
- $request Request
public
get ( $method ) : Illuminate\...\Route[]
Get routes from the collection by method.
Parameters
- $method string|null
public
hasNamedRoute ( $name ) : bool
Determine if the route collection contains a given named route.
Parameters
- $name string
public
getByAction ( $action ) : Route |null
Get a route instance by its controller action.
Parameters
- $action string
public
getRoutes ( ) : Illuminate\...\Route[]
Get all of the routes in the collection.
public
getRoutesByMethod ( ) : array
Get all of the routes keyed by their HTTP verb / method.
public
getRoutesByName ( ) : Illuminate\...\Route[]
Get all of the routes keyed by their name.