lucent config
This commit is contained in:
1 parent
341ad267a5
commit
9bbe5ee9b4
9 files changed
+95
-71
No files matched your search
@@ -22,9 +22,15 @@ readonly class AuthService
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function currentUserId(): ?string
|
||||
{
|
||||
return $this->session->get("user.id");
|
||||
if(app()->runningInConsole()){
|
||||
return config("lucent.systemUserId");
|
||||
}else{
|
||||
return $this->session->get("user.id");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function isLoggedIn(): bool
|
||||
|
||||
Reference in new issue
Block a user