From 7d028b15f5b519024c607162b8a865c21aa68a0e Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 5 Dec 2023 15:26:05 +0100 Subject: [PATCH] wip --- app/Http/Livewire/Dashboard.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/app/Http/Livewire/Dashboard.php b/app/Http/Livewire/Dashboard.php index 5056c989e..bebab3c96 100644 --- a/app/Http/Livewire/Dashboard.php +++ b/app/Http/Livewire/Dashboard.php @@ -10,17 +10,17 @@ class Dashboard extends Component { public $projects = []; public $servers = []; - // public function getListeners() - // { - // $teamId = auth()->user()->currentTeam()->id; - // return [ - // "echo-private:custom.{$teamId},TestEvent" => 'notifyNewOrder', - // ]; - // } - // public function notifyNewOrder() - // { - // $this->emit('success', 'New order received!'); - // } + public function getListeners() + { + $teamId = auth()->user()->currentTeam()->id; + return [ + "echo-private:custom.{$teamId},TestEvent" => 'notifyNewOrder', + ]; + } + public function notifyNewOrder() + { + $this->emit('success', 'New order received!'); + } public function mount() { $this->servers = Server::ownedByCurrentTeam()->get();