title: Hash class not found Laravel 5, at model level, looking for App\Hash?
body: <p>I'm building my first Laravel application, and I'm trying to figure out how I should be hashing passwords at a model level.</p>
  
  <p>The issue is, when trying to use the Laravel <code>Hash::</code> class, it can't be found. I've attempted to look up the relevant API documentation, but can't find anything apart from some references to <code>Illuminate</code> namespace classes - and from what I gather <code>Hash::</code> should be globally available?</p>
  
  <p>I'm new to PHP namespacing, and I'm guessing this may have something to do the with the issue, as the error states it's looking for <code>App\Hash</code> and I know it's not part of the <code>App</code> namespace, but the <code>Illuminate</code> one.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>&lt;?php namespace App;
  
  use Illuminate\Auth\Authenticatable;
  use Illuminate\Database\Eloquent\Model;
  use Illuminate\Auth\Passwords\CanResetPassword;
  use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
  use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
  
  class User extends Model implements AuthenticatableContract, CanResetPasswordContract {
  
      use Authenticatable, CanResetPassword;
  
      /**
       * The database table used by the model.
       *
       * @var string
       */
      protected $table = 'users';
  
      /**
       * The attributes that are mass assignable.
       *
       * @var array
       */
      protected $fillable = ['first_name', 'last_name', 'default_currency', 'default_timezone', 'default_location', 'email', 'password'];
  
      /**
       * The attributes excluded from the model's JSON form.
       *
       * @var array
       */
      protected $hidden = ['password', 'remember_token'];
  
      public function setPasswordAttribute($value) {
          $this-&gt;attributes['password'] = Hash::make($value);
      }
  
  }
  </code></pre>
  
  <p>Any help in figuring out the route cause of this, and any suggestions would be greatly appreciated!</p>