wip
This commit is contained in:
parent
d240bfda8b
commit
7d028b15f5
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user