We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ffec7d commit 491d908Copy full SHA for 491d908
src/Listeners/CheckLogin.php
@@ -10,10 +10,12 @@ class CheckLogin
10
{
11
use Helper;
12
13
- public string $middleware = 'login';
14
-
15
public function handle(Event $event): void
16
+ $this->request = request();
+ $this->middleware = 'login';
17
+ $this->user_id = 0;
18
+
19
if ($this->skip($event)) {
20
return;
21
}
@@ -27,9 +29,6 @@ public function handle(Event $event): void
27
29
28
30
public function skip($event): bool
31
- $this->request = request();
- $this->user_id = 0;
32
33
if ($this->isDisabled()) {
34
return true;
35
0 commit comments