title: Class 'App\Http\Controllers\Hash' not found
body: <p>I'm trying to use Hash in my global functions file.</p>
  
  <p>I keep getting this error.</p>
  
  <p>Class 'App\Http\Controllers\Hash' not found</p>
  
  <p>where my file below is located at:</p>
  
  <p>/app/Helpers/functions.php</p>
  
  <pre><code>&lt;?php
  
      use App\Http\Controllers\Hash;
  
      // If old password matches password
      function checkOldPassword($oldPassword, $user) {
          if (Hash::check($oldPassword, $user-&gt;password)) {
              dd('a');
          }
          else {
              return back()-&gt;withErrors([
                  'message' =&gt; 'Your old password is incorrect.'
              ]);
          }
      }
  </code></pre>