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

Maybe this is what you are looking for: Redirect::back() ?

Last updated 1 year ago.
0

psychonetic said:

Maybe this is what you are looking for: Redirect::back() ?

Nope, I need to get the route to the previous page, to save the comment. Then i use the route to the page to load the appropriate comments...

Last updated 1 year ago.
0

Ok, I solved it by adding <input type="hidden" name="route" value="{{ Request::path(); }}"> to it..

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

JacobCZ jacobcz Joined 11 Aug 2014

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.