简体   繁体   中英

Multiple User Models in cartalyst/sentinel with laravel

I'm using cartalyst/sentinel with laravel and I'm looking to use Multiple User Models with sentinel. its a yii application that I'm rewriting in laravel it has separate tables for each type of user like a client, admin, etc. with role base I have to create a relation with sentinel user model but lot of queries are based on existing table keys. How can use different tables for authentication with laravel?

If it's Sentinel then it has a config where you can set the role_user pivot table and set their roles (client, admin) using slug. Hope this helps

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM