[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
This commit is contained in:
Tortue Torche authored and Tom Shafer committed 2018-03-22 07:00:50 -07:00
1 parent b79edc7acf
commit 33984f5e87
1 file changed
+1 -1
+1 -1
View File
@@ -1183,7 +1183,7 @@ class FormBuilder
}
$request = $this->request($name);
if (! is_null($request)) {
if (! is_null($request) && $name !== '_method') {
return $request;
}