ID input
<input class="form-control" type="hidden" value="{{ Auth()->user()->id }}">
After dump
"_token" => "BP0ejzEjoIjFyUonjdMFNAyoRDcYCr4k7nec5czI"
"name" => "Mark"
"surname" => "Johanessburg"
"number" => "8281992832"
"email" => "[email protected]"
So I’m trying to send the user’s ID through the form. But when I clicked the submit button and do a dd, there is no ID sent. What can I do to fix this or is there something I did wrong? Thank you in advance.
2
Answers
parameter fo id was missing
U need to add name attribute to the input field to get it in the submitted data
The name attribute is used by the request object to get the form field data…