samedi 7 mars 2015

Laravel 5 Implement multiple Auth drivers

Synopsis


I am building a system with at least two levels of Authentication and both have separate User models and tables in the database. I have searched google for advice and help, yet the only solution that doesn't solve my problem with one MultiAuth package that shoehorns multiple drivers on Auth.


I have gone through the core code of Auth from the AuthServiceProvider, Auth Aliases extending the core code in my own package and i'm having too many problems with IoC and reflection not correctly initialising class inheritance.


My goal


I am attempting to remove Auth which is faily straight-forward. But I would like CustomerAuth and AdminAuth using a separate config file as per config/customerauth.php and config\adminauth.php






Aucun commentaire:

Enregistrer un commentaire