Support the ongoing development of Laravel.io →
posted 10 years ago
Requests

Hey, I'm making a comment form and I'd like to send the user directly to the form after submitting the comment, so basically just adding #comments after the URL. I'm redirecting with

Redirect::back()->with("message", "Comment added!");
Last updated 2 years ago.
0

If you don't mind it on error as well (if there's any validation), just use action="#comments" on the form?

Last updated 2 years 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.

© 2025 Laravel.io - All rights reserved.