From 33984f5e87221b362cce54cc73d3ef0f1c6aa472 Mon Sep 17 00:00:00 2001 From: Tortue Torche Date: Thu, 22 Mar 2018 15:00:50 +0100 Subject: [PATCH] [5.5] Fix form method of hidden input '_method' is preserved on next request (#505) This fix was merged in the pull request https://github.com/LaravelCollective/html/pull/460 But the pull request https://github.com/LaravelCollective/html/pull/471 accidentally revert this fix --- src/FormBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FormBuilder.php b/src/FormBuilder.php index 6258494..00ba728 100644 --- a/src/FormBuilder.php +++ b/src/FormBuilder.php @@ -1183,7 +1183,7 @@ class FormBuilder } $request = $this->request($name); - if (! is_null($request)) { + if (! is_null($request) && $name !== '_method') { return $request; }