title: Laravel Password & Password_Confirmation Validation
body: <p>I've been using this in order to edit the User Account Info:</p>
  
  <pre><code>$this-&gt;validate($request, [
      'password' =&gt; 'min:6',
      'password_confirmation' =&gt; 'required_with:password|same:password|min:6'
  ]);
  </code></pre>
  
  <p>This worked fine in a Laravel 5.2 Application but does not work in a 5.4 Application.</p>
  
  <p><a href="https://i.stack.imgur.com/8Hhd6.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8Hhd6.png" alt="image"></a></p>
  
  <p>What's wrong here, or what is the correct way in order to only make the <code>password</code> required if either the <code>password</code> or <code>password_confirmation</code> field is set?</p>