Laravel Socialite - Save URL before redirection
问题 I'm using Laravel 5.4 and Socialite so my users can log in with Facebook . My website works with subdomain newyork.example.com , paris.example.com example.com The Facebook URL redirect for the callback login has to be absolute so I set http://example.com login/facebook public function redirectToProvider() { $_SESSION['originalURL'] ="http://paris.example.com"; return Socialite::driver('facebook') ->scopes(['rsvp_event', 'public_profile']) ->redirect(); } login/facebook/callback public