fix: service navbar using new realtime events

This commit is contained in:
Andras Bacsai
2023-12-08 12:12:44 +01:00
parent 86c2415210
commit b55bd298f2
16 changed files with 107 additions and 33 deletions

View File

@@ -8,12 +8,12 @@ class Sponsorship extends Component
{
public function getListeners()
{
$teamId = auth()->user()->currentTeam()->id;
$userId = auth()->user()->id;
return [
"echo-private:custom.{$teamId},TestEvent" => 'testEvent',
"echo-private:custom.{$userId},TestEvent" => 'testEvent',
];
}
public function testEvent()
public function testEvent($asd)
{
$this->dispatch('success', 'Realtime events configured!');
}