arrays - How to get a list of registered route paths in Laravel? -


i hoping find way create array registered routes paths within laravel 4.

essentially, looking list returned:

/ /login /join /password 

i did come across method route::getroutes() returns object routes information resources path information protected , don't have direct access information.

is there other way achieve this? perhaps different method?

route::getroutes() returns routecollection. on each element, can simple $route->getpath() path of current route.

each protected parameter can standard getter.

looping works this:

$routecollection = route::getroutes();  foreach ($routecollection $value) {     echo $value->getpath(); }