title: Use MySQL PASSWORD() in Laravel Eloquent
body: <p>im coding a registration for an old game, this games uses PASSWORD() for encryption.
  Is there a way to use that function in Laravel Eloquent?</p>
  
  <p>current form:</p>
  
  <pre><code> public function registerPost(Request $request)
      {
          $request-&gt;validate([
              'login' =&gt; 'required|min:4|unique:account',
              'email' =&gt; 'required|email|unique:account',
              'password' =&gt; 'required|min:8',
              'repeat_password' =&gt; 'required|same:password',
          ], [], [
              'login' =&gt; 'Username',
              'password' =&gt; 'Password',
              'email' =&gt; 'E-Mail',
              'repeat_password' =&gt; 'Repeat password'
          ]);
  
          $data = $request-&gt;all();
  
          if (Account::create($data)) {
              return Redirect::to("/registration")-&gt;withErrors(['success' =&gt; 'Account created']);
          }
  
          return Redirect::to("/registration")-&gt;withErrors(['message' =&gt; 'Account creation failed']);
      }
  </code></pre>