protected function verbs() { return ['index' => ['GET', 'HEAD'], 'view' => ['GET', 'HEAD'], 'create' => ['POST'], 'update' => ['PUT', 'PATCH'], 'delete' => ['DELETE']]; }
/** * @inheritdoc */ protected function verbs() { $verbs = parent::verbs(); $verbs['edit'] = ['POST']; $verbs['detail'] = ['GET']; $verbs['update'] = ['PUT']; $verbs['restore'] = ['PATCH']; return $verbs; }