F
Filamentβ€’4mo ago
Barbaracrlp

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