Simply write a GET
route to approveRequest
:
Route::get('approveRequest', 'ApproveController@approve');
Because you are using URL parameters, you can simply get them in the approve()
function like this
public function approve(Request $request)
{
$id = $request->id;
$gsID = $request->get('gsID');
.... and so on for all your variables.
}
With this approach the order of parameters does not matter.