This commit is contained in:
Andras Bacsai
2023-12-05 11:17:52 +01:00
parent 02989678be
commit ce49f26c53
11 changed files with 107 additions and 65 deletions

View File

@@ -10,6 +10,12 @@ class Dashboard extends Component
{
public $projects = [];
public $servers = [];
protected $listeners = ['echo:public,TestEvent' => 'notifyNewOrder'];
public function notifyNewOrder()
{
$this->emit('success', 'New order received!');
}
public function mount()
{
$this->servers = Server::ownedByCurrentTeam()->get();