Home  >  Article  >  Backend Development  >  laravel5.1.11 admins table and users table, how to authenticate users in multiple tables?

laravel5.1.11 admins table and users table, how to authenticate users in multiple tables?

WBOY
WBOYOriginal
2016-08-25 10:37:301129browse

I want to separate the user table and administrator table logins to perform different user authentications.

Has anyone accomplished this? Asking for advice

Reply content:

I want to separate the user table and administrator table logins to perform different user authentications.

Has anyone accomplished this? Asking for advice

Crab Demon.
Just configure it in config/auth.php, add a providers

5.1 does not have its own multi-table user authentication
You can use kbwebs/multiauth
GITHUB address: https://github.com/Kbwebs/Mul...

Statement:
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