wip: 🌮

This commit is contained in:
Andras Bacsai
2023-12-05 13:56:11 +01:00
parent cd22863a8c
commit 5cc22a8271
10 changed files with 84 additions and 55 deletions

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();