Good afternoon! I'm having the following problem: I have a php page named locality that has the fields "name" and "city". In the name field, I type the name of the locality, such as "Beautiful Corner", and in the city field I retrieve from a table tebelaCidades . It turns out that when I click the "Search" button, through the url of the controller, the page that contains the cities table is accessed, that is, if before the link was link , it now becomes link . When I click select, the data is loaded into the city input correctly, but whatever the name I typed in the name field returns empty. I know that as I call the page location to enter the city data, then the page is rendered and then every field that had been filled, back empty. So the question is: how can I solve this problem?
Note: I'm using the Laravel framework (Blade template engine).
Thank you in advance.