title: field validation to make dependency in laravel
body: <p>I have 3 fields - type(hw/sw),hardware type(dropdown) and asset_request.'Type' field is dropdown hardware(1) and software(2).'hardware type' has phone(1),camera(2),others(3)</p>
  
  <p>If I chosen hardware(1),hardware type field is mandary and asset_request field is not mandatory.</p>
  
  <p>If I chosen software(0) only asset_request field is mandatory.</p>
  
  <p>If I chosen type=hardware(1) and hardware type=others(3) asset_request field is mandatory.
  how to validate this in laravel </p>
  
  <pre><code>$this-&gt;validate($request,[
                  'hardware_type' =&gt; 'required_without:asset_request',
                  'asset_request' =&gt; 'required_without:hardware_type',
                   //want to check asset_request is required if hardware_type is 3 
              ],$messages);
  </code></pre>