Why did you opt for two tables?
Oct 16, 2017
3
Level 1
How do I authenticate two models?
My application deals with two tables 'users' and 'customers'. Users is for admins and they access via an online dashboard through the website. Customers login through a mobile application. Since make auth only creates authentication for the users model, how do I create authentication for customers?
Level 35
I stumbled across this at the weekend, seems to be for doing just that (2 or more models): https://www.youtube.com/watch?v=iKRLrJXNN4M
The other option would be to use roles, and keep them in one table.
2 likes
Please or to participate in this conversation.