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
ModestasVβ€’5w 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
Barbaracrlpβ€’5w ago
I addd it here? in the .env file?
No description
ModestasV
ModestasVβ€’5w ago
that would work, but you would have to add it every time
Barbaracrlp
Barbaracrlpβ€’5w ago
and also just here? 'table' => env('SESSION_TABLE', 'sessions'), in the sessions.php?
ModestasV
ModestasVβ€’5w ago
One of the two places πŸ™‚ Yes
Barbaracrlp
Barbaracrlpβ€’5w ago
okay, thanks so much