1

Well, I've just started using Laravel 5 and I've been told that he has an Authentication system (Auth), but it works for one Table. I have two kind of clients and each one has its own Table. and I need to Make a common Login Page, that checks both table ( assuming that usernames are unique in both tables). is there any solution for this ? Thanks

khofaai
  • 1,357
  • 1
  • 10
  • 23
Houssin Inani
  • 65
  • 1
  • 1
  • 8

1 Answers1

0

You may add one more column of client type e.g. role in the same table and make them able to login from the same view and then check in the postLogin Controller to see if they are of either role and give them the correct view.

Hammad Ahmed
  • 271
  • 2
  • 4
  • 17