0
How do I pass data via get from a form? When I do Submit, the url is
meusite.com/pesquisar?termo=algumtermo&categoria=algumacategoria
. How I pass these two parameters termo
and categoria
to the route and send to the controller?
0
How do I pass data via get from a form? When I do Submit, the url is
meusite.com/pesquisar?termo=algumtermo&categoria=algumacategoria
. How I pass these two parameters termo
and categoria
to the route and send to the controller?
Browser other questions tagged laravel-5.5
You are not signed in. Login or sign up in order to post.
puts the controller code pff, even if it has nothing to see how you access
request
– Miguel
The route I took
Route::get('/pesquisar?q={termo}&categoria={categoria}', 'SiteController@pesquisar');
but if I access that route it is not found. There in the controller, I just passedpublic function pesquisar($termo, $categoria){ return $termo; }
– Felipe Paz