Answer the question
In order to leave comments, you need to log in
Why doesn't the session persist in Laravel 5.4?
Hello.
I have this problem:
session is not saved
Session::put('test', 'Test Session');
var_dump(Session::get('test')); // Сессию видно
//Session::put('test', 'Test Session');
Answer the question
In order to leave comments, you need to log in
why is the call static?
It is not tied anywhere and it lives until the end of the work once.
https://laravel.com/docs/5.4/session#using-the-session
or is storage not configured?
1) Is the middleware for starting sessions for the web environment registered?
2) Is stateful session storage being used? Or statesles like array?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question