Answer the question
In order to leave comments, you need to log in
Why aren't laravel cookies or session remembered when using socialite?
There is a piece of code:
public function redirectToGoogle($profileType)
{
return Socialite::driver('google')->redirect()->cookie(Cookie::create('i_want_to_be',$profileType)->withExpires(Carbon::now()->addDay()->unix()));
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question