site->deploy(); $this->toast()->success(__('Deployment started!')); $this->emitTo(DeploymentsList::class, '$refresh'); $this->emitTo(DeploymentScript::class, '$refresh'); } catch (SourceControlIsNotConnected $e) { session()->flash('toast.type', 'error'); session()->flash('toast.message', $e->getMessage()); $this->redirect(route('source-controls')); } } public function render(): View { return view('livewire.application.deploy'); } }