Support the ongoing development of Laravel.io →
Requests Input Installation
Last updated 2 years ago.
0

Remove the csrf_field as that is what that is.

0

Remove the csrf_field. Or Change the method GET to POST

0

The csrf_field() function creates a hidden field in your form with the name _token that contains a csrf token. Because of how the <form> element in html works all form fields will be sent as variables in the url if you are using method=GET.

However, if you change your method to POST, the form fields will be sent in the http request body.

TLDR; if you don't want your form fields to be visible in the URL, you cannot use GET.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.