auth check

This commit is contained in:
Benjamin Takats
2023-01-19 19:02:17 +01:00
parent b4620fa894
commit 022924e20f

View File

@@ -13,6 +13,7 @@ class LaravelEcho extends Component
public function plebLoggedIn($data) public function plebLoggedIn($data)
{ {
if (auth()->check()) {
$this->notification() $this->notification()
->confirm([ ->confirm([
'img' => $data['img'], 'img' => $data['img'],
@@ -26,3 +27,4 @@ class LaravelEcho extends Component
]); ]);
} }
} }
}