title: How do I compare one input value to another input value in laravel controller?
body: <p>How do I compare one input value to another input value in laravel controller?</p>
  
  <pre><code>$data = $this-&gt;validate($request, [
   'suppler_id' =&gt; 'required',
   'date'  =&gt; 'required',
   'item_name' =&gt; 'required', 
   'item_quantity' =&gt; 'required',
   'item_rate' =&gt; 'required',
   'total' =&gt; 'required',
   'pay' =&gt; 'required_with:total|integer|lte:total|',
  
  ]);
  </code></pre>
  
  <p>Here I want to compare between total field and pay field to ensure that total is bigger than pay.</p>