lucent config

This commit is contained in:
lexx committed 2023-10-06 13:07:09 +03:00
1 parent 341ad267a5
commit 9bbe5ee9b4
9 files changed
+95 -71

No files matched your search

+7 -1
View File
@@ -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