I'm using Laravel 5.3 and I came across a problem. I need to authenticate multiple types of users. I saw in the documentation and in some tutorials that it is possible to do this in Laravel, the problem is that all I have seen show how to do an authentication when each type of user has a distinct table, eg: a table for admin, another for ordinary user and etc. In my database there are some tables like, coordinator, teacher, student and others that have a foreignKey / primaryKey that refer to a table named user. I tried doing some implementations that I saw in some tutorials like this: Best solution for three types of users , but did not work. Remember that there is only one login page for all users, since after a user logs in I will define what each type of user will be able to see or do on the system.
If someone can give me a hint on how to authenticate, I thank you a lot.