From 04db8069950b9322cf057b2e6e8c0e801e23ee27 Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 2 Sep 2015 19:22:40 +0300 Subject: [PATCH] Update RouteCollection.php --- src/Http/RouteCollection.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Http/RouteCollection.php b/src/Http/RouteCollection.php index 500ac8d58..795f72ef8 100644 --- a/src/Http/RouteCollection.php +++ b/src/Http/RouteCollection.php @@ -90,11 +90,8 @@ class RouteCollection public function getPath($name, array $parameters = []) { $parts = $this->reverse[$name][0]; - array_walk($parts, [$this, 'fixPathPart'], $parameters); - $path = implode('', $parts); - - $path = '/' . ltrim($path, '/'); + $path = '/' . ltrim(implode('', $parts), '/'); return $path; } }