title: How to hash password with md5 instead of bcrypt in laravel 8?
body: <p>I want to hash password with md5 instead of bcrypt in laravel 8.
  In my login controller LoginController.php :</p>
  <pre><code>protected function credentials(Request $request)
          {
              return ['user_name' =&gt; $request-&gt;{$this-&gt;username()}, 'password' =&gt; md5($request-&gt;password), 'actif' =&gt; 'Y'];
          }
  </code></pre>
  <p>And in my UserController I have:</p>
  <pre><code>public function store(Request $request)
      {        
          $this-&gt;validationRules($request);        
          $user = new User();       
          $user-&gt;password = md5(&quot;00000000&quot;);
          $user-&gt;actif = 'Y';
          $user-&gt;user_name = $request-&gt;input('user_name');
          $user-&gt;save();
  
          return redirect('/users');
      }
  </code></pre>
  <p>The new user is saved in the database with md5 but when I try to login it gives me this error :</p>
  <pre><code>These credentials do not match with our records
  </code></pre>