lundi 11 janvier 2016

Guidance on multiple auths Laravel 5.2

I’m building a search engine to find courses online; I wanted to ask for some guidance with the best way to program/structure the project. I’m going to be building the application using laravel 5.2

I have 3 different types of users as follows

Users Course Providers Advisors

All of which have different information associated with them such as

Users Table first_name last_name date_of_birth email password

Course Providers – this needs to have multiple logins associated with the course provider company_name address_line_1 address_line_2 postcode tel

Advisors company_name first_name last_name email password

I still want to use laravels Auth but how can I allow multiple auths or am I best in using roles if so how would this work?

What’s the best way of handling multiple logins that are associated with 1 company?

I would appreciate if anyone can give me a better solution or point me in the right direction.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire