mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
auth check
This commit is contained in:
@@ -13,16 +13,18 @@ class LaravelEcho extends Component
|
|||||||
|
|
||||||
public function plebLoggedIn($data)
|
public function plebLoggedIn($data)
|
||||||
{
|
{
|
||||||
$this->notification()
|
if (auth()->check()) {
|
||||||
->confirm([
|
$this->notification()
|
||||||
'img' => $data['img'],
|
->confirm([
|
||||||
'title' => 'Pleb alert!',
|
'img' => $data['img'],
|
||||||
'description' => $data['name'].' logged in',
|
'title' => 'Pleb alert!',
|
||||||
'icon' => 'bell',
|
'description' => $data['name'].' logged in',
|
||||||
'acceptLabel' => '',
|
'icon' => 'bell',
|
||||||
'rejectLabel' => '',
|
'acceptLabel' => '',
|
||||||
'iconColor' => 'primary',
|
'rejectLabel' => '',
|
||||||
'timeout' => 60000,
|
'iconColor' => 'primary',
|
||||||
]);
|
'timeout' => 60000,
|
||||||
|
]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user