title: How to use required_if Laravel Validation in php
body: <p>I want to give validation if weight is not empty then shipping_cost required and vise verse.</p>
  
  <pre><code>array('weight' =&gt; 'numeric|required_if:shipping_cost,value',
  'shipping_cost' =&gt; 'numeric|required_if:weight,value')
  </code></pre>
  
  <p>What will be the value for 'weight,<strong>value</strong>' and  'shipping_cost,<strong>value</strong>' ?</p>