Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dave.howson's avatar

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?

0 likes
3 replies
bashy's avatar

Why did you opt for two tables?

dave.howson's avatar

@bashy I opted for two tables because these two models are very different structurally and it looked as if it would make much sense to have two different models. Admins are only given to a handful of internal persons while anyone is allowed to become a customer. Instead of having one table for all of them, two different tables felt safer and more easier to manage.

@aeholmes I watched this video and made my application accordingly. So far it works pretty well. Thank you :)

Please or to participate in this conversation.