wip
This commit is contained in:
@@ -10,17 +10,17 @@ class Dashboard extends Component
|
|||||||
{
|
{
|
||||||
public $projects = [];
|
public $projects = [];
|
||||||
public $servers = [];
|
public $servers = [];
|
||||||
// public function getListeners()
|
public function getListeners()
|
||||||
// {
|
{
|
||||||
// $teamId = auth()->user()->currentTeam()->id;
|
$teamId = auth()->user()->currentTeam()->id;
|
||||||
// return [
|
return [
|
||||||
// "echo-private:custom.{$teamId},TestEvent" => 'notifyNewOrder',
|
"echo-private:custom.{$teamId},TestEvent" => 'notifyNewOrder',
|
||||||
// ];
|
];
|
||||||
// }
|
}
|
||||||
// public function notifyNewOrder()
|
public function notifyNewOrder()
|
||||||
// {
|
{
|
||||||
// $this->emit('success', 'New order received!');
|
$this->emit('success', 'New order received!');
|
||||||
// }
|
}
|
||||||
public function mount()
|
public function mount()
|
||||||
{
|
{
|
||||||
$this->servers = Server::ownedByCurrentTeam()->get();
|
$this->servers = Server::ownedByCurrentTeam()->get();
|
||||||
|
|||||||
Reference in New Issue
Block a user