Skip to content

Commit

Permalink
[11.x] fix: Forcing DB Session driver to always use the write connect…
Browse files Browse the repository at this point in the history
…ion (#54231)

* Forcing DB Session driver to always use the write connection

* Delete tests/Session/DatabaseSessionHandlerTest.php

---------

Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
mathiasgrimm and taylorotwell authored Jan 17, 2025
1 parent 4ae015b commit 1f174fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Session/DatabaseSessionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ public function gc($lifetime): int
*/
protected function getQuery()
{
return $this->connection->table($this->table);
return $this->connection->table($this->table)->useWritePdo();
}

/**
Expand Down

0 comments on commit 1f174fc

Please sign in to comment.