From 29847698c516e2f2249ed84a6be53f661efd3256 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Tue, 9 Jun 2015 00:06:33 +0200 Subject: [PATCH] Remove HTTP method from generated URLs --- framework/core/src/Http/Router.php | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/core/src/Http/Router.php b/framework/core/src/Http/Router.php index 791db3264..eeb7c465a 100644 --- a/framework/core/src/Http/Router.php +++ b/framework/core/src/Http/Router.php @@ -80,6 +80,7 @@ class Router public function getPath($name, $parameters = []) { $parts = $this->reverse[$name]; + array_forget($parts, 'method'); $path = implode('', array_map(function ($part) use ($parameters) { if (is_array($part)) {