I'm validating a form in Laravel, defined like this:
class ContactFormRequest extends Request
{ ... }
And in my controller I have:
public function contact_form(ContactFormRequest $request)
and everything is just fine. The request validates and returns to Request::back();
with the errors.
How can I add a hash to the back URL, like /contact_form#hash
?
Thanks
Found it. In the constructor of the custom request add: