Take a look at the flash data, https://laravel.com/docs/5.0/responses#redirects
You might need to use the flash data on the redirect to the login page, which would need to see the included variables, then have it redirect back with those variables.
Something like this :
// redirect to the /test but include vars
Route::get('/rtest', function () {
$parameters = ['product' => 121, 'id' => 23];
return redirect('/test')->withInput($parameters);
});
Route::get('/test', function (Request $request) {
// dump out the passed data
ddd($request->old());
});
You would need to detect if the $request->old() has data and then redirect to a route with params in your handle function.
Hope that made sense.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community