Support the ongoing development of Laravel.io →
Authentication Requests Input
Last updated 1 year ago.
0

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.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

alexisdeza alexisdeza Joined 19 Nov 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.