title: Laravel - pass input value to controller with POST
body: <p>I have a laravel form and some input number fields in it. I want to post the different values of the input fields to the controller. </p>
  
  <pre><code> {!! Form::open(['action' =&gt; 'ShoppingController@addProducts', 'method' =&gt; 'post']) !!}
       @foreach($products as $product)
  
       // some non important other data
  
       &lt;input type="number" class="form-control text-center" min="1" max="999"     value="{{ $product-&gt;quantity }}"&gt;
  
       @endforeach
   {!! Form::submit('ShoppingCard', ['class' =&gt; 'btn btn-primary fa fa-angle-right']) !!}--}}
   {!! Form::close() !!}
  </code></pre>
  
  <p>Okay now imagine I have 3 different products, so 3 different number inputs. Now I want to pass all the different number values from the user to the controller. Like an array. How can I do that? </p>
  
  <p>Thanks for any help! </p>