title: Laravel check for old password, when change new password
body: <p>I want check if user pass new_password input as current password, I want to redirect with message: <code>Your current password can't be with new password</code>. How I can check this? I want do system change password user, but I want denied old passwords pass. How I can do ?</p>
  
  <pre><code>if (!(Hash::check($request-&gt;old_password, Auth::user()-&gt;password))) {
      return response()-&gt;json(['errors' =&gt; ['Your current password can't be with new password']], 400);
  }
  </code></pre>
  
  <p>Code is not working.
  Do I need write old passwords to database?</p>