diff --git a/app/Events/Models/Server/ServerCreated.php b/app/Events/Models/Server/ServerCreated.php index 5f595df..958ace7 100644 --- a/app/Events/Models/Server/ServerCreated.php +++ b/app/Events/Models/Server/ServerCreated.php @@ -19,6 +19,7 @@ public function __construct( public function broadcastOn() { $this->model->load('credential'); + return [ new PrivateChannel('App.Models.User.'.$this->model->credential->user_id), ]; diff --git a/app/Events/Models/Server/ServerCreating.php b/app/Events/Models/Server/ServerCreating.php index e843ae4..d7d7471 100644 --- a/app/Events/Models/Server/ServerCreating.php +++ b/app/Events/Models/Server/ServerCreating.php @@ -19,6 +19,7 @@ public function __construct( public function broadcastOn() { $this->model->load('credential'); + return [ new PrivateChannel('App.Models.User.'.$this->model->credential->user_id), ]; diff --git a/app/Events/Models/Server/ServerDeleted.php b/app/Events/Models/Server/ServerDeleted.php index 94f88a1..8b95248 100644 --- a/app/Events/Models/Server/ServerDeleted.php +++ b/app/Events/Models/Server/ServerDeleted.php @@ -19,6 +19,7 @@ public function __construct( public function broadcastOn() { $this->model->load('credential'); + return [ new PrivateChannel('App.Models.User.'.$this->model->credential->user_id), ]; diff --git a/app/Events/Models/Server/ServerDeleting.php b/app/Events/Models/Server/ServerDeleting.php index 7872698..baf8c3d 100644 --- a/app/Events/Models/Server/ServerDeleting.php +++ b/app/Events/Models/Server/ServerDeleting.php @@ -19,6 +19,7 @@ public function __construct( public function broadcastOn() { $this->model->load('credential'); + return [ new PrivateChannel('App.Models.User.'.$this->model->credential->user_id), ]; diff --git a/app/Events/Models/Server/ServerUpdated.php b/app/Events/Models/Server/ServerUpdated.php index 1f61979..3d6d3fb 100644 --- a/app/Events/Models/Server/ServerUpdated.php +++ b/app/Events/Models/Server/ServerUpdated.php @@ -19,6 +19,7 @@ public function __construct( public function broadcastOn() { $this->model->load('credential'); + return [ new PrivateChannel('App.Models.User.'.$this->model->credential->user_id), ]; diff --git a/app/Events/Models/Server/ServerUpdating.php b/app/Events/Models/Server/ServerUpdating.php index 643fdb7..515a27a 100644 --- a/app/Events/Models/Server/ServerUpdating.php +++ b/app/Events/Models/Server/ServerUpdating.php @@ -19,6 +19,7 @@ public function __construct( public function broadcastOn() { $this->model->load('credential'); + return [ new PrivateChannel('App.Models.User.'.$this->model->credential->user_id), ]; diff --git a/config/scout.php b/config/scout.php index 9748d1f..1facab5 100644 --- a/config/scout.php +++ b/config/scout.php @@ -1,4 +1,5 @@