Have you looked at this:
https://laravel.com/docs/5.4/authentication#other-authentication-methods
I am building a new Laravel application (v5.4) that will run alongside (installed in the same environment) an existing PHP application that has it's own authentication system. I want the users who have successfully logged in to the existing system to be automatically authenticated in the Laravel app so they can navigate seamlessly between the applications.
My Laravel app has read-only access (through a second db connection) to the existing system's database so it can safely check that the PHP Session matches the session cookie recorded in the database and I can even pull out the user object and hand it to Auth's login() method.
I want to know the best way to put Auth into an authorised state (not guest) and where is the best place to put such code?
Options I've thunked of so far:
Thanks in advance for your help Laracasts community!
Have you looked at this:
https://laravel.com/docs/5.4/authentication#other-authentication-methods
Please or to participate in this conversation.