Level 55
@anonymouse703 check it here https://laravel.com/docs/8.x/session#database
run in terminal
php artisan session:table
php artisan migrate
3 likes
Hello guys, I tried to pull a project which is 5.6 version when I try to run it I got this error
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hms-admin.sessions' doesn't exist (SQL: select * from `sessions` where `id` = bdPsfbAWYfgJbqlxNStFODo1y8wEjB1RIGU3yFix limit 1)
I tried to modify the .env and sessions php from file to database but still I got the same error
.env
BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=database
SESSION_LIFETIME=120
session.php
'driver' => env('SESSION_DRIVER', 'database'),
Please or to participate in this conversation.