mercredi 12 février 2020

Laravel - Dynamically add ids to the request

I have form with radio buttons where I am getting unique generated id from database.

I am getting each Id in $SelectedQuestionId. I want to append this id to the request dynamically in the code.

It is showing values properly if I hardcode the values in my code, but when trying to pass the dynamically generated value, it is not showing proper output. Not getting what I am doing wrong here.

So how can we dynamically add ids to the request ?

Here is my code:

enter image description here

Here's my output:

enter image description here



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire