user()->currentTeam()->id; return [ "echo-private:team.{$teamId},ApplicationConfigurationChanged" => 'configurationChanged', 'configurationChanged' => 'configurationChanged', ]; } public function mount() { $this->configurationChanged(); } public function render() { return view('livewire.project.shared.configuration-checker'); } public function configurationChanged() { 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 = []; } }