diff --git a/app/Form/Resources/FormResource.php b/app/Form/Resources/FormResource.php index 5dfcf1dd..9e664d45 100644 --- a/app/Form/Resources/FormResource.php +++ b/app/Form/Resources/FormResource.php @@ -56,11 +56,11 @@ class FormResource extends JsonResource 'links' => [ 'participant_index' => route('form.participant.index', ['form' => $this->getModel(), 'parent' => null]), 'participant_root_index' => route('form.participant.index', ['form' => $this->getModel(), 'parent' => -1]), - 'update' => route('form.update', ['form' => $this->getModel()]), - 'destroy' => route('form.destroy', ['form' => $this->getModel()]), - 'is_dirty' => route('form.is-dirty', ['form' => $this->getModel()]), + 'update' => route('form.update', $this->getModel()), + 'destroy' => route('form.destroy', $this->getModel()), + 'is_dirty' => route('form.is-dirty', $this->getModel()), 'frontend' => str(app(FormSettings::class)->registerUrl)->replace('{slug}', $this->slug), - 'export' => route('form.export', ['form' => $this->getModel()]), + 'export' => route('form.export', $this->getModel()), ] ]; }