Answer the question
In order to leave comments, you need to log in
How to loop through an array of inputs?
Hello. Prompt: There are inputs of this type
<input type="text" name="name[]">
<input type="text" name="fabricator[]">
<input type="text" name="value[]">
foreach($request->name as $key => $val ) {
$param = Flavors::create(['name' => $val);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question