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.
Solution:Jump to 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
file6 Replies
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
fileI addd it here? in the .env file?
that would work, but you would have to add it every time
and also just here? 'table' => env('SESSION_TABLE', 'sessions'), in the sessions.php?
One of the two places π Yes
okay, thanks so much