Hello. Tell me: There are intups of this type
<input type="text" name="name[]"> <input type="text" name="fabricator[]"> <input type="text" name="value[]"> This group of inputs will be specified in an indefinite number by the user, that is, the dynamics. So, the question is how to iterate over these arrays of all inputs and write to the database or how else to do better? So far, the current has done a brute force through one array, but is it possible to sort out everything at once and send it to the database?
foreach($request->name as $key => $val ) { $param = Flavors::create(['name' => $val); }