RouteCollectionInterface
interface RouteCollectionInterface implements Countable
Methods
Refresh the name look-up table.
Refresh the action look-up table.
Get routes from the collection by method.
Determine if the route collection contains a given named route.
Get a route instance by its controller action.
Get the route instances that should be pre-warmed.
Get all of the routes in the collection.
Get all of the routes keyed by their HTTP verb / method.
Get all of the routes keyed by their name.
Details
at line 22
void
refreshNameLookups()
Refresh the name look-up table.
This is done in case any names are fluently defined or if routes are overwritten.
at line 29
void
refreshActionLookups()
Refresh the action look-up table.
This is done in case any actions are overwritten with new controllers.
at line 44
array
get(string|null $method = null)
Get routes from the collection by method.
at line 49
bool
hasNamedRoute(string $name)
Determine if the route collection contains a given named route.
at line 54
Route|null
getByName(string $name)
Get a route instance by its name.
at line 59
Route|null
getByAction(string $action)
Get a route instance by its controller action.
at line 66
array
getWarmableRoutes()
Get the route instances that should be pre-warmed.
at line 73
array
getRoutes()
Get all of the routes in the collection.
at line 80
array
getRoutesByMethod()
Get all of the routes keyed by their HTTP verb / method.
at line 87
array
getRoutesByName()
Get all of the routes keyed by their name.