mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-18 22:13:09 +00:00
wip
This commit is contained in:
1 parent
e0cefc787a
commit
d59ec2548a
3 files changed
+19
-12
No files matched your search
@@ -13,14 +13,16 @@ use Illuminate\Queue\SerializesModels;
|
||||
class TestEvent implements ShouldBroadcast
|
||||
{
|
||||
use Dispatchable, InteractsWithSockets, SerializesModels;
|
||||
public $teamId;
|
||||
public function __construct()
|
||||
{
|
||||
$this->teamId = auth()->user()->currentTeam()->id;
|
||||
}
|
||||
|
||||
public function broadcastOn(): array
|
||||
{
|
||||
return [
|
||||
new Channel('public'),
|
||||
new PrivateChannel("custom.{$this->teamId}"),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user