Sessions Table Name

Hi, I'm trying to use AdminPanel in an already running app, I need somehow to change the name of the sessions table, since the DB I have to use already has a "sessions" table.Any idea? I though of changing the migration, but then filament wouldn't be able to find it.
No description
Solution:
You can change the table name in migration and for it to take effect - change the SESSION_TABLE in your .env file OR change table in config/session.php file
Jump to solution
6 Replies
Solution
ModestasV
ModestasV9mo ago
You can change the table name in migration and for it to take effect - change the SESSION_TABLE in your .env file OR change table in config/session.php file
Barbaracrlp
BarbaracrlpOP9mo ago
I addd it here? in the .env file?
No description
ModestasV
ModestasV9mo ago
that would work, but you would have to add it every time
Barbaracrlp
BarbaracrlpOP9mo ago
and also just here? 'table' => env('SESSION_TABLE', 'sessions'), in the sessions.php?
ModestasV
ModestasV9mo ago
One of the two places 🙂 Yes
Barbaracrlp
BarbaracrlpOP9mo ago
okay, thanks so much

Did you find this page helpful?