3
i have a link where I already pass a variable to the controller. It works ok. How do I pass two?
My link in View:
<a href="{{url("/ordemvar/$equipam->codigoequipamento")}}"><i class="glyphicon glyphicon-tasks"></i></a>
It would be something like that?
<a href="{{url("/ordemvar/$equipam->id?$equipam->codigoequipamento")}}"><i class="glyphicon glyphicon-tasks"></i></a>
How I pick up the controller
public function pegaEquipa($prm)
{
return $prm;
}
Thanks
Have you researched Ajax?
– EmanuelF
No. This method works well. Just not how to pass more than one.
– Marcos Birro
Pass the values you want as a list, for example: [123,321,145], so in Backend you will only need to capture this list with the explode function.
– Leandro Paiva