lasthourcloud/app/Livewire/LayoutPopups.php
2024-03-22 11:34:15 +01:00

25 lines
493 B
PHP

<?php
namespace App\Livewire;
use Livewire\Component;
class LayoutPopups extends Component
{
public function getListeners()
{
$teamId = auth()->user()->currentTeam()->id;
return [
"echo-private:team.{$teamId},TestEvent" => 'testEvent',
];
}
public function testEvent()
{
$this->dispatch('success', 'Realtime events configured!');
}
public function render()
{
return view('livewire.layout-popups');
}
}