fix: live event

This commit is contained in:
Andras Bacsai
2023-12-08 13:55:55 +01:00
parent 828fec9448
commit a249ee1b1f
6 changed files with 36 additions and 21 deletions

View File

@@ -29,9 +29,8 @@ class Navbar extends Component
}
public function getListeners()
{
$userId = auth()->user()->id;
return [
"echo-private:custom.{$userId},ServiceStatusChanged" => 'serviceStatusChanged',
"serviceStatusChanged"
];
}
public function serviceStatusChanged()