I have 2 separate controls for my website.
I want to authenticate users from 2 different tables for my application. Like if user if on myapplication.com/admin
it should be authenticated from tbl_operators and if the user if on myapplication.com
it should be authenticated from tbl_users
How to achieve this functionality in Laravel 5.2
If you plan to use the Auth built in with Laravel then this may not be possible. However if you wanna build your own authentication specifically for the admin then this may be possible.
You could also look into storing in an entirely new database using
DB::connection('name')
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.