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 $servers = [];
protected $listeners = ['echo:public,TestEvent' => 'notifyNewOrder'];
// protected $listeners = ['echo:public,TestEvent' => 'notifyNewOrder'];
public function notifyNewOrder()
{
$this->emit('success', 'New order received!');
}
// public function notifyNewOrder()
// {
// $this->emit('success', 'New order received!');
// }
public function mount()
{
$this->servers = Server::ownedByCurrentTeam()->get();