M
M
MiJunior2018-09-17 18:47:20
Laravel
MiJunior, 2018-09-17 18:47:20

Why laravel sessions table is not populated?

Task: to enter the ip of new users into the database, check on each page. To do this, I use sessions, namely, I bring them into the database. table made:

php artisan session:table

php artisan migrate

in config/session.php
'driver' => env('SESSION_DRIVER', 'database'),
I also changed it to .env
SESSION_DRIVER=database
but the table is still not filled in, what could be the problem?
asked a question on stackoverflow - 0 replies. Who has any ideas?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor, 2018-09-17
@MiJunior

Do the sessions themselves work at all?
It seems that the problem with the config and session cache is still stored in files.
php artisan config:clear

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question