RouteCollection
class RouteCollection implements Countable, IteratorAggregate (View source)
Methods
void
refreshNameLookups()
Refresh the name look-up table.
array
get(
string|null $method = null)
Get all of the routes in the collection.
bool
hasNamedRoute(
string $name)
Determine if the route collection contains a given named route.
Route|null
getByAction(
string $action)
Get a route instance by its controller action.
array
getRoutes()
Get all of the routes in the collection.
array
getRoutesByMethod()
Get all of the routes keyed by their HTTP verb / method.
getIterator()
Get an iterator for the items.
int
count()
Count the number of items in the collection.
Details
at line line 108
void
refreshNameLookups()
Refresh the name look-up table.
This is done in case any names are fluently defined.
at line line 258
bool
hasNamedRoute(
string $name)
Determine if the route collection contains a given named route.