I want to use database (currently, MySQL) to store session. But, when I tried to config, table sessions still has no record.
In file config/session.php when I change 'driver' => env('SESSION_DRIVER', 'file'),
- to
'driver' => env('SESSION_DRIVER', 'database'), - or
'driver' => env('SESSION_DRIVER', 'redis'),
What should I change for 'connection' => null,?
I tried:
'connection' => 'mysql',with mysql is configured in app/database.php'connection' => 'database.connections.mysql','connection' => Config::get('database.connections.mysql'),got class not found error
.envfile? - Scopey