laravel echo

This commit is contained in:
Benjamin Takats
2023-01-18 23:44:55 +01:00
parent 107ef6fd81
commit f6dafb204a
3 changed files with 12 additions and 3 deletions

View File

@@ -14,7 +14,16 @@ class LaravelEcho extends Component
public function plebLoggedIn($data)
{
$this->notification()
->success(title: 'Pleb alert!', description: $data['name'].' logged in');
->confirm([
'img' => $data['img'],
'title' => 'Pleb alert!',
'description' => $data['name'].' logged in',
'icon' => 'bell',
'acceptLabel' => '',
'rejectLabel' => '',
'iconColor' => 'primary',
'timeout' => 60000,
]);
}
public function render()