Laravel5.2 login information cannot be obtained after user authentication

Source: Internet
Author: User
After I log on with laravel5.2 user authentication, I can print the user information directly in the login method. When jumping to another controller, the user login information cannot be read, and Auth: user () is printed out as null. The environment is mac + nginx + php + mysql. here we can get user login...

After I log on with laravel5.2 user authentication, I can print the user information directly in the login method. When jumping to another controller, the user login information cannot be read, and Auth: user () is printed out as null.
The environment is mac + nginx + php + mysql

The user logon information can be obtained here.

However, after jumping out of login, the user information cannot be obtained. below is my path configuration

Later, I deployed my project in windows, and the user authentication was normal. What are the extensions required for laravel5.2 development environments or other causes.

Reply content:

After I log on with laravel5.2 user authentication, I can print the user information directly in the login method. When jumping to another controller, the user login information cannot be read, and Auth: user () is printed out as null.
The environment is mac + nginx + php + mysql

The user logon information can be obtained here.

However, after jumping out of login, the user information cannot be obtained. below is my path configuration

Later, I deployed my project in windows, and the user authentication was normal. What are the extensions required for laravel5.2 development environments or other causes.

Some versions later than laravel 5.2 do not require middleware. Let's take a look?

There is, the deployment of video tutorials: https://laravist.com/series/d...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.