'nullable|string', 'resource.manual_webhook_secret_gitlab' => 'nullable|string', 'resource.manual_webhook_secret_bitbucket' => 'nullable|string', ]; public function saveSecret() { try { $this->validate(); $this->resource->save(); $this->dispatch('success','Secret Saved.'); } catch (\Exception $e) { return handleError($e, $this); } } public function mount() { $this->deploywebhook = generateDeployWebhook($this->resource); $this->githubManualWebhook = generateGitManualWebhook($this->resource, 'github'); $this->gitlabManualWebhook = generateGitManualWebhook($this->resource, 'gitlab'); $this->bitbucketManualWebhook = generateGitManualWebhook($this->resource, 'bitbucket'); } public function render() { return view('livewire.project.shared.webhooks'); } }