jeudi 22 août 2019

Laravel socialite google login not redirect back , it redirect to home page

public    function    handleProviderCallback()
{
    $user    =    Socialite   ::   driver('google')->user();
    $data   =   User::where('email',$user->email)->first();
   if($data)   {
       Auth::login($data);
       return    Redirect::back();
   }
}

This is my google login redirect code.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire