modalId = new Cuid2(7); $this->parameters = get_route_parameters(); } public function delete() { try { DeleteResourceJob::dispatchSync($this->resource); return $this->redirectRoute('project.resources', [ 'project_uuid' => $this->parameters['project_uuid'], 'environment_name' => $this->parameters['environment_name'] ], navigate: true); } catch (\Throwable $e) { return handleError($e, $this); } } }