Wednesday, March 15, 2017

Laravel Request show what form the input was captured in

I am currently using the Laravel 5.4 Framework and during form submission I am collecting the inputs of a Request and would like to see the form name that the inputs were captured in.

<form name="my_form">
    <input type="checkbox" name="my_input" value="my_value">
</form>

So in the example above I would like to see the checkbox named "my_input" to be contained in the form "my_form". Currently with the way Request works it will just take "my_input" and show that.

The reason for my need of seeing the form name because my inputs are dynamic and am creating objects based off of the form name.

Thank You



via likwidmonster

Advertisement