title: How to save having the same name attribute value in Laravel 5.5
body: <p>what is the approach of saving same name attribute in Laravel 5.5? I am not if I'm doing right of grouping them in foreach loop and where to put the save method.</p>
  
  <pre><code>&lt;input type="text" name="aka" value="The Magnificent" /&gt;    
  @foreach ($listTalkOperationTime as $data)
     &lt;input type="number" name="startHours[]"value="{{ $data-&gt;starthour }}" /&gt;
     &lt;input type="number" name="startMins[]" value="{{ $data-&gt;startmin }}" /&gt;
     &lt;input type="number" name="endHours[]" value="{{ $data-&gt;endhour }}" /&gt;
     &lt;input type="number" name="endMins[]" value="{{ $data-&gt;endmin }}" /&gt;
     &lt;button type="button"&gt;Submit&lt;/button&gt;
  @endforeach
  </code></pre>
  
  <p>This is what's in my head</p>
  
  <pre><code>$model = new User;
  $model-&gt;aka = $request-&gt;aka;
  foreach ($request-&gt;startHours as $so) {
    $model-&gt;starthours = $so;
  }
  foreach ($request-&gt;startMins $sm) {
    $model-&gt;starthours = $sm;
  }
  ...
  $model-&gt;save()
  </code></pre>