app/View/Components/Form.php: Add "PATCH" to spoofMethod.
This commit is contained in:
parent
a4886705a7
commit
06ab6e12c5
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ class Form extends Component
|
|||
|
||||
public function __construct($method = 'POST')
|
||||
{
|
||||
if (in_array($method, ['DELETE'])) {
|
||||
if (in_array($method, ['DELETE', 'PATCH'])) {
|
||||
$this->spoofMethod = $method;
|
||||
$method = 'POST';
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue