Access query string values from Laravel
For future visitors, I use the approach below for > 5.0. It utilizes Laravel’s Request class and can help keep the business logic out of your routes and controller. Example URL admin.website.com/get-grid-value?object=Foo&value=Bar Routes.php Route::get(‘get-grid-value’, ‘YourController@getGridValue’); YourController.php /** * $request is an array of data */ public function getGridValue(Request $request) { // returns “Foo” $object = … Read more