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