class RouteCollection implements Countable, IteratorAggregate (View source)
Route | add( Route $route) Add a Route instance to the collection. | |
void | refreshNameLookups() Refresh the name look-up table. | |
Route | match( Request $request) Find the first route matching a given request. | |
bool | hasNamedRoute( string $name) Determine if the route collection contains a given named route. | |
Route|null | getByName( string $name) Get a route instance by its name. | |
Route|null | getByAction( string $action) Get a route instance by its controller action. | |
array | getRoutes() Get all of the routes in the collection. | |
ArrayIterator | getIterator() Get an iterator for the items. | |
int | count() Count the number of items in the collection. |
Refresh the name look-up table.
This is done in case any names are fluently defined.
Determine if the route collection contains a given named route.
Get a route instance by its name.
Get a route instance by its controller action.
Get all of the routes in the collection.
Get an iterator for the items.
Count the number of items in the collection.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.1/Illuminate/Routing/RouteCollection.html