Combined with the Auth and cache provided by Laravel

Source: Internet
Author: User
To verify the user's validity through Redis, the Auth provided by Laravel seems to be specific to the database and automatically completed. How can I combine Auth and cache? To verify the legality of users through Redis,

However, Laravel's self-built Auth seems to be targeted at the database and is automatically completed.

How can I combine Auth and cache?

Reply content:

To verify the legality of users through Redis,

However, Laravel's self-built Auth seems to be targeted at the database and is automatically completed.

How can I combine Auth and cache?

Laravel's auth is an out-of-the-box login authentication system. The reason why laravel is based on the database is that the applications used eventually put user data into the database, you can change the authentication method in auth to use redis as the password to log on to the cache.

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.