user()->currentTeam()->id; return [ "echo-private:team.{$teamId},ApplicationConfigurationChanged" => 'configurationChanged', 'configurationChanged' => 'configurationChanged', ]; } public function mount(): void { $this->configurationChanged(); } public function render(): View { return view('livewire.project.shared.configuration-checker'); } public function refreshConfigurationChanges(): void { $this->configurationChanged(); } public function configurationChanged(): void { $this->resource->refresh(); if ($this->resource instanceof Application) { $diff = $this->resource->pendingDeploymentConfigurationDiff(); $this->isConfigurationChanged = $diff->isChanged(); $this->configurationDiff = $diff->toArray(); $this->groupedConfigurationChanges = $diff->groupedChanges(); return; } $this->isConfigurationChanged = $this->resource->isConfigurationChanged(); $this->configurationDiff = []; $this->groupedConfigurationChanges = []; } }