A
A
Alexander Ampleev2019-12-13 12:48:46
Laravel
Alexander Ampleev, 2019-12-13 12:48:46

Laravel socialite how to return to the same page from which I tried to log in after authorization through facebook?

I am using socialite laravel.
When trying to authorize via facebook, the method is called

public function redirect()
    {
        return Socialite::driver('facebook')->with(['url_back' => 'test_url_back'])->redirect();
    }

I'm trying to pass the url in this way so that the callback function can redirect the user to the same page from which he originally tried to log in. But this is just a hypothesis, how to actually do it, I can not understand. Hope someone can help. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
gian_tiaga, 2019-12-24
@gian_tiaga

return back() ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question