Home > Backend Development > PHP Tutorial > 结合Laravel自带的Auth和缓存

结合Laravel自带的Auth和缓存

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:18:07
Original
1794 people have browsed it

想通过Redis来验证用户的合法性,

但是Laravel自带的Auth好像是针对数据库的, 并且自动完成。

该如何结合Auth和缓存?

回复内容:

想通过Redis来验证用户的合法性,

但是Laravel自带的Auth好像是针对数据库的, 并且自动完成。

该如何结合Auth和缓存?

laravel的auth是一个开箱即用的登录认证系统,之所以基于数据库是因为所用应用最终都将用户资料持久进了数据库中,你想用redis来做密码登录缓存是可以更改auth里面的认证方法即可。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template