title: Laravel request validation with multiple forms on the same page
body: <p>I have three different forms on the same page. All inputs has it's own validation rules, code in Request file has structure like this:</p>
  
  <pre><code>public function rules()
  {
      return [
          //
          'sold'  =&gt; 'required',
          'unit_in_stock'  =&gt; 'required',
          'unit_price_gbp' =&gt; 'required',
          'returned_item'  =&gt; 'required',
      ];
  }
  
  
  public function messages()
  {
      return [
          'sold.required' =&gt; 'Please enter quantity of sold parts',
          'unit_in_stock.required' =&gt; 'Please enter quantity of sold parts',
          'unit_price_gbp.required' =&gt; 'Please enter price in GBP',
          'returned_item.required' =&gt; 'Please enter quantity of items',
      ];
  }
  </code></pre>
  
  <p>But when I am trying to submit one of three forms, another form returns with message about empty fields. This forms not related with each other.</p>
  
  <p>Here is a sreenshot of the page
  <a href="https://i.stack.imgur.com/IIguc.png" rel="noreferrer"><img src="https://i.stack.imgur.com/IIguc.png" alt="Form errors"></a></p>
  
  <p>Here is my forms:</p>
  
  <pre><code>{!! Form::open(['url' =&gt; route('addDelivery.addDelivery'),'class'=&gt;'contact-form','method'=&gt;'POST']) !!}
  
      &lt;label&gt;Price in GBP &amp;#163;:&lt;/label&gt;
      {!! Form::text('unit_price_gbp', isset($price-&gt;unit_price_gbp) ? $price-&gt;unit_price_gbp : old('unit_price_gbp'), array('class'=&gt;'form-control'), ['placeholder'=&gt;'GBP']) !!}
      &lt;label&gt;Quantity: &lt;/label&gt;
      {!! Form::text('unit_in_stock', isset($price-&gt;unit_in_stock) ? $price-&gt;unit_in_stock : old('unit_in_stock'), array('class'=&gt;'form-control'), ['placeholder'=&gt;'Qt.']) !!}
  
      &lt;input type="hidden" name="part_number" value="{{ $product-&gt;part_number }}"&gt;
      &lt;input type="hidden" name="part_id" value="{{ $product-&gt;id }}"&gt;
      &lt;input type="hidden" name="slug" value="{{ $product-&gt;slug }}"&gt;
  
      {!! Form::button('Add Delivery', ['class' =&gt; 'btn btn-sm btn-success','type'=&gt;'submit']) !!}
  
  {!! Form::close() !!}
  
  
  {!! Form::open(['url' =&gt; route('sold.sold'),'class'=&gt;'contact-form','method'=&gt;'POST']) !!}
  
      &lt;label style="margin-right: 30px;"&gt;Sell:&lt;/label&gt;
      {!! Form::text('sold', old('sold'), array('class'=&gt;'form-control', 'placeholder'=&gt;'Qty.')) !!}
      &lt;input type="hidden" name="part_id" value="{{ $product-&gt;id }}"&gt;
      &lt;input type="hidden" name="_token" value="{{ csrf_token() }}"&gt;
      {!! Form::button('Sold', ['class' =&gt; 'btn btn-sm btn-success','type'=&gt;'submit']) !!}
  
  {!! Form::close() !!}
  
  
  {!! Form::open(['url' =&gt; route('productReturn.productReturn'),'class'=&gt;'contact-form','method'=&gt;'POST']) !!}
  
      &lt;label&gt;Return:&lt;/label&gt;
      {!! Form::text('returned_item', old('returned_item'), array('class'=&gt;'form-control', 'placeholder'=&gt;'Qty.')) !!}
      &lt;input type="hidden" name="part_id" value="{{ $product-&gt;id }}"&gt;
      &lt;input type="hidden" name="_token" value="{{ csrf_token() }}"&gt;
      {!! Form::button('Return', ['class' =&gt; 'btn btn-sm btn-success','type'=&gt;'submit']) !!}
  
  {!! Form::close() !!}
  </code></pre>
  
  <p>But all three forms is separate, and need to be submitted separately.</p>
  
  <p>How can i fix this problem?  </p>