Skip to content

Commit

Permalink
Implemented getRoutesByName method 💪 (#19901)
Browse files Browse the repository at this point in the history
  • Loading branch information
Frondor authored and taylorotwell committed Jul 5, 2017
1 parent 405fd27 commit e328cef
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Illuminate/Routing/RouteCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,16 @@ public function getRoutesByMethod()
return $this->routes;
}

/**
* Get all of the routes keyed by their name.
*
* @return array
*/
public function getRoutesByName()
{
return $this->nameList;
}

/**
* Get an iterator for the items.
*
Expand Down

0 comments on commit e328cef

Please sign in to comment.