I am using simple form and array input like this(not dynamic);
<input type="text" name="pre_ref_position[]" id="pre_ref_position">
<input type="text" name="pre_ref_position[]" id="pre_ref_position">
Form post with ajax and returned data like this;
[
0:{pre_ref_position:'example1'}
1:{pre_ref_position:'example2'}
]
So i want to save this data with eloquent but how can i handle this array and save each row in the database?
from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2vSQSDC
via IFTTT
Aucun commentaire:
Enregistrer un commentaire