Home >Backend Development >PHP Tutorial >Cannot obtain login information after laravel5.2 user authentication
After I log in using the user authentication of laravel5.2, I can get the user information by printing directly in the login method. When jumping to other controllers, the user login information cannot be read, and Auth:user() prints out empty.
The environment is mac+nginx+php+mysql
Here is where you can get user login information
But after logging out, the user information cannot be obtained. The following is my routing configuration
Later I deployed my project in Windows, and there was no problem with user authentication and it could be used normally. May I ask what extensions are required for the development environment of laravel5.2 or are there other reasons?
After I log in using the user authentication of laravel5.2, I can get the user information by printing directly in the login method. When jumping to other controllers, the user login information cannot be read, and Auth:user() prints out empty.
The environment is mac+nginx+php+mysql
Here is where you can get user login information
But after logging out, the user information cannot be obtained. The following is my routing configuration
Later I deployed my project in Windows, and there was no problem with user authentication and it could be used normally. May I ask what extensions are required for the development environment of laravel5.2 or are there other reasons?
Some versions after laravel 5.2 do not require the web middleware. Would you like to see it again?
There is also a video tutorial on deployment: https://laravist.com/series/d...