[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:
1 parent
b79edc7acf
commit
33984f5e87
1 file changed
+1
-1
+1
-1
@@ -1183,7 +1183,7 @@ class FormBuilder
|
|||||||
}
|
}
|
||||||
|
|
||||||
$request = $this->request($name);
|
$request = $this->request($name);
|
||||||
if (! is_null($request)) {
|
if (! is_null($request) && $name !== '_method') {
|
||||||
return $request;
|
return $request;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user