Sunday, March 5, 2017

Custom login in laravel with single table

As i searched a lot to create the custom multi auth in laravel on single table for different different user (i.e Customer,Shopkeeper,Admin,Delivery Executives). and this is done on single table i.e. user_table which contain a column name user_type which will hold that what type of user is that, as i need to do like this because existing system was developed in PHP and having same schema but i want to upgrade to laravel so i stuck up in the very first step.

But i searched then found to create multiple tables like admin,customer and etc but for this i have to alter my current database which i dont need.

So, any one help me out how to do it exactly.



via Shubham

Advertisement