title: Change Password In Laravel 5.4
body: <p>I've add code to change password in my webapp. But <code>Hash::check()</code>    doesn't work. Always return false. Also <code>Hash::Make()</code> returns    different string every time. I've tried <code>bcrypt()</code> instead but, it also    doesn't work. Please help me. Here's my code.</p>
  
  <pre><code>public function changePassword(Request $request)
  {
      $user = Auth::user();
  
      $curPassword = $request-&gt;input['curPassword'];
      $newPassword = $request-&gt;input['newPassword'];
  
      if (Hash::check($curPassword, $user-&gt;password)) {
          $user_id = $user-&gt;id;
          $obj_user = User::find($user_id)-&gt;first();
          $obj_user-&gt;password = Hash::make($newPassword);
          $obj_user-&gt;save();
  
          return response()-&gt;json(["result"=&gt;true]);
      }
      else
      {
          return response()-&gt;json(["result"=&gt;false]);
      }
  }
  </code></pre>
  
  <p>Thank you.</p>