Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

wip

Andras Bacsai7d028b15f5b5
diff --git a/app/Http/Livewire/Dashboard.php b/app/Http/Livewire/Dashboard.php
index 5056c989ec..bebab3c968 100644
--- a/app/Http/Livewire/Dashboard.php
+++ b/app/Http/Livewire/Dashboard.php
@@ -10,17 +10,17 @@ class Dashboard extends Component
{
public $projects = [];
public $servers = [];
- // public function getListeners()
- // {
- // $teamId = auth()->user()->currentTeam()->id;
- // return [
- // "echo-private:custom.{$teamId},TestEvent" => 'notifyNewOrder',
- // ];
- // }
- // public function notifyNewOrder()
- // {
- // $this->emit('success', 'New order received!');
- // }
+ public function getListeners()
+ {
+ $teamId = auth()->user()->currentTeam()->id;
+ return [
+ "echo-private:custom.{$teamId},TestEvent" => 'notifyNewOrder',
+ ];
+ }
+ public function notifyNewOrder()
+ {
+ $this->emit('success', 'New order received!');
+ }
public function mount()
{
$this->servers = Server::ownedByCurrentTeam()->get();