update to livewire 3

This commit is contained in:
HolgerHatGarKeineNode
2023-11-20 18:25:37 +01:00
parent adc9d625d9
commit 0746f75596
6 changed files with 112 additions and 127 deletions

View File

@@ -9,22 +9,8 @@ class LaravelEcho extends Component
{
use Actions;
protected $listeners = ['echo:plebchannel,.App\Events\PlebLoggedInEvent' => 'plebLoggedIn'];
protected $listeners = [
];
public function plebLoggedIn($data)
{
if (auth()->check()) {
$this->notification()
->confirm([
'img' => $data['img'],
'title' => 'Pleb alert!',
'description' => $data['name'].' logged in',
'icon' => 'bell',
'acceptLabel' => '',
'rejectLabel' => '',
'iconColor' => 'primary',
'timeout' => 60000,
]);
}
}
}