Archived
1
0
Fork 0

app/View/Components/Form.php: Add "PATCH" to spoofMethod.

This commit is contained in:
Henrik Hautakoski 2021-07-02 16:17:39 +02:00
parent a4886705a7
commit 06ab6e12c5

View file

@ -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';
}