This commit is contained in:
Andras Bacsai 2023-12-05 12:18:23 +01:00
parent 862177d61a
commit 118a02f70d

View File

@ -10,12 +10,12 @@ class Dashboard extends Component
{ {
public $projects = []; public $projects = [];
public $servers = []; public $servers = [];
protected $listeners = ['echo:public,TestEvent' => 'notifyNewOrder']; // protected $listeners = ['echo:public,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();