title: Laravel reset password, Class '\App\User' not found
body: <p>I am trying to create a reset password URI, and it is there and uses the Laravel built in reset password system, but when I test it, I get:</p>
  
  <blockquote>
    <p>FatalErrorException in EloquentUserProvider.php line 126: Class
    '\App\User' not found</p>
  </blockquote>
  
  <p>This is my config/auth.php:</p>
  
  <pre><code>/*
  |--------------------------------------------------------------------------
  | Authentication Model
  |--------------------------------------------------------------------------
  |
  | When using the "Eloquent" authentication driver, we need to know which
  | Eloquent model should be used to retrieve your users. Of course, it
  | is often just the "User" model but you may use whatever you like.
  |
  */
  
  'model' =&gt; App\User::class,
  </code></pre>
  
  <p>And this is is my app/Http/routes.php:</p>
  
  <pre><code>/*
  |--------------------------------------------------------------------------
  | Application Routes
  |--------------------------------------------------------------------------
  |
  | Here is where you can register all of the routes for an application.
  | It's a breeze. Simply tell Laravel the URIs it should respond to
  | and give it the controller to call when that URI is requested.
  |
  */
  
  Route::post('register', 'RegisterController@register');
  
  Route::post('resetpassword', 'Auth\PasswordController@postEmail');
  
  Route::resource('api/authenticate', 'AuthenticateController', ['only' =&gt; ['index']]);
  Route::post('api/authenticate', 'AuthenticateController@authenticate');
  
  //All protected routes should go in this group
  Route::group(['middleware' =&gt; 'isUserAuthed'], function () {
    Route::get('restricted', 'WelcomeController@welcome');
  });
  </code></pre>
  
  <p>My User class is located at app/User.php:</p>
  
  <pre><code>&lt;?php
  
  namespace App;
  
  use Illuminate\Auth\Authenticatable;
  use Illuminate\Database\Eloquent\Model;
  use Illuminate\Auth\Passwords\CanResetPassword;
  use Illuminate\Foundation\Auth\Access\Authorizable;
  use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
  use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
  use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
  
  class User extends Model implements AuthenticatableContract,
                                  AuthorizableContract,
                                  CanResetPasswordContract
  {
  use Authenticatable, Authorizable, CanResetPassword;
  
  /**
   * The database table used by the model.
   *
   * @var string
   */
  protected $table = 'users';
  
  /**
   * The attributes that are mass assignable.
   *
   * @var array
   */
  protected $fillable = ['name', 'username', 'password', 'role', 'active', 'email'];
  
  /**
   * The attributes excluded from the model's JSON form.
   *
   * @var array
   */
  protected $hidden = ['password', 'remember_token'];
  }
  </code></pre>
  
  <p>Can someone point me in the right direction? The documentation for this doesn't seem very clear to me.</p>