mardi 11 août 2020

Getting dynamic field data using vue.js in laravel

I am creating multiple dynamic fields and the same is posted to the laravel controller methods but i'm able to get the simple fields data (fields that are not dynamically generated) but the array fields that are dynamically generated those values i'm unable to get in the controller method.

 <input :name="'students['+studentdetails.id+']['+studentdetails.class+']'" type="text" class="form-control"/>
 <input :name="'students['+studentdetails.id+']['+studentdetails.class+']'" type="text" class="form-control"/>

In my controller method when i'm getting it:

  printr($request->attributes);

there is not value.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire