How to get http get parameters in a link in Laravel?

I am redirecting users from one laravel site to another for unified authentication.

This is the redirect code on the website 1

return Redirect::to('http://example.com/login?param1=paramValue'); 

In website 2 , I'm trying to get param1 value

 $param1 = Input::get('param1'); 

but the get () function does not return a value.

IF I try Input :: has ('param1') , it returns false .

Can someone help me find out what is happening with my code?

+4
source share
1 answer

The code works fine for me,

  $param1 = Input::get('param1'); return $param1; 

Just try updating your framework using composer update

+7
source

Source: https://habr.com/ru/post/1502596/


All Articles