Logo Questions Linux Laravel Mysql Ubuntu Git Menu

How to retrieve http get parameters in link in Laravel?

I am redirecting users from one laravel website to another for single authentication.

This is the redirect code in the website 1

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

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

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

but get() function is not returning the value.

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

Can someone please guide me on what's going wrong with my code?

like image 497
Yogesh Sawant Avatar asked Mar 22 '23 09:03

Yogesh Sawant

1 Answers

The code is working fine for me,

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

Just try to update your framework using composer update

like image 132
Anshad Vattapoyil Avatar answered Apr 06 '23 04:04

Anshad Vattapoyil