pleb alert!

This commit is contained in:
Benjamin Takats
2023-01-18 23:01:27 +01:00
parent 7bd3efbabc
commit e92fa90962
26 changed files with 3461 additions and 2204 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Http\Livewire;
use Livewire\Component;
use WireUi\Traits\Actions;
class LaravelEcho extends Component
{
use Actions;
protected $listeners = ['echo:login,.App\Events\PlebLoggedInEvent' => 'plebLoggedIn'];
public function plebLoggedIn($data)
{
$this->notification()
->success(title: 'Pleb alert!', description: $data['name'].' logged in');
}
public function render()
{
return view('livewire.laravel-echo');
}
}