diff --git a/src/Illuminate/Session/DatabaseSessionHandler.php b/src/Illuminate/Session/DatabaseSessionHandler.php index 0770c22f46e9..51c044569d81 100644 --- a/src/Illuminate/Session/DatabaseSessionHandler.php +++ b/src/Illuminate/Session/DatabaseSessionHandler.php @@ -94,7 +94,7 @@ public function close(): bool */ public function read($sessionId): string|false { - $session = (object) $this->getQuery()->find($sessionId); + $session = (object) $this->getQuery()->where('id', '=', $sessionId)->first(); if ($this->expired($session)) { $this->exists = true;