Answer the question
In order to leave comments, you need to log in
Laravel is it possible to external authorization by cookie?
I started to study Laravel, but the Russian documentation did not really fit into my head, I also suffered and did not understand the English one. I found out one thing, that most likely it's really possible to do all this with standard AUTH.
The bottom line is that my main domain issues a cookie. I receive it on a subdomain, I am connected to a DB. and I get its USER_ID.
Is it possible to authorize in Laravel by simply giving it a user ID? That is, without using the login password, etc.
Answer the question
In order to leave comments, you need to log in
Auth::loginUsingId(1);
// Login and "remember" the given user...
Auth::loginUsingId(1, true);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question