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