title: Laravel validation rules - optional, but validated if present
body: <p>I'm trying to create a user update validation through form, where I pass, for example 'password'=&gt;NULL, or 'password'=&gt;'newone';</p>
  <p>I'm trying to make it validate ONLY if it's passed as not null, and nothing, not even 'sometimes' works :/</p>
  <p>I'm trying to validate as :</p>
  <pre class="lang-php prettyprint-override"><code>Validator::make(
      ['test' =&gt; null], 
      ['test' =&gt; 'sometimes|required|min:6']
  )-&gt;validate();
  </code></pre>
  <p>But it fails to validate.</p>