In Laravel, when using Socialte, LOG IN WITH FACEBOOK, how can we use url intended to come to the same page or action page?

I have used socialite package to login with facebook in laravel. I have used url intended to come to same page or action page while logging from normal login procedure. How can we achieve such feature using socialite.

Stackoverflow has got same feature. When we log from a questions page, it redirects us to same (question) page.