Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

fabuy's avatar
Level 1

Socialite Parameter

Hi, I need to pass a parameter subscription when the user signs up using Socialite.

Unfortunately I can't get the parameter called subscription in the controller, if add a other parameter after {social_network} Socialite fail.

Any idea?

//Login with Socialite Route::get('login/{social_network}/', 'SocialLoginController@redirectToSocialNetwork')->name('login.social')->middleware('guest', 'social_network'); Route::get('login/{social_network}/callback/', 'SocialLoginController@handleSocialNetworkCallback')->middleware('guest', 'social_network');

//My route in blade

{{ route('login.social', ['social_network' => 'google','subscription' => 'TREECCCXXX'])}}"

0 likes
4 replies
fabuy's avatar
Level 1

Yes, It's work but I have a question how to get this optional parameter after callback?

Please or to participate in this conversation.