Skip to main content

Posts

Showing posts from January, 2016

Laravel 5.2 Multi Authentication

Today I wasted almost 3 hours to search on internet about Multi Authentication in Laravel 5.2. I have gone though laracast's post and other few forums too, I was still not able to find any solution for it. Their were packages such as sboo/multiauth, ollieread/multiauth, kbweb/multiauth etc. yet was not satisfied with their solutions, I tried to use them a lot but very soon I got stuck with bugs. Finally after a long research I finally found out a great solution for it, i found it on a frequent website I visit for my solution of any coding problems, and the solution was really shocking for me that it required no package installation or any other kinda stuff. It's already included with Laravel 5.2. Thanks to  Hasmukh Tank  a stack overflow user, he made a beautiful step by step procedure to do that. Here are those procedures: Refer Url :  How to use multi Auth in laravel 5.2 1. First we create two models 1 ) user , 2 ) admin 2. Update the config / auth . php fil