mardi 12 juin 2018

add get parameter to laravel's redirect method

I use laravel 5.6

I have GET parameter which I want to pass to redirect function.

Route::get('/about', function () {
   //I want to add param to this redirect function
   return redirect('/en/about');
});

if the route looks like /about?param=123 after redirect the param will be lost. is there way to add parameter to redirect method? as I see this function doesn't include input parameters. the parameter is optional, so it may not be provided. maybe there's way to override this function? or some other solution? all suggestions will be appreciated



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2t2bqYH
via IFTTT

Aucun commentaire:

Enregistrer un commentaire