Laravel 5.4 validation rules - optional, but validated if present; : <p>I'm trying to create a user update validation through form, where I pass, for example 'password'=>NULL, or 'password'=>'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><code>Validator::make(array('test'=&gt;NULL), array('test'=&gt; 'sometimes|required|min:6'))-&gt;validate();
</code></pre>

<p>But it fails to validate... :/ ANy help would be appreciated.</p>
