title: Class 'User' not found
body: <p>So I'm trying a basic <code>php artisan db:seed</code> after migrating my database but it keeps returning the title error in cmd -<code>[Symfony\Component\Debug\Exception\FatalErrorException] Class 'User' not found</code></p>
  
  <p><strong>Things I Have Tried</strong></p>
  
  <ul>
  <li>php dump-autoload after updating the class</li>
  <li>php dump-autoload before running the <code>db:seed</code> function</li>
  <li>rolling back the migration and then re-running it</li>
  <li>rolling back the migration and then re-running it with the <code>--seed</code> syntax</li>
  <li>Change the namespace of the 'Users' File</li>
  </ul>
  
  <p><strong>Below is the migrations</strong></p>
  
  <pre><code>&lt;?php
  
  use Illuminate\Database\Schema\Blueprint;
  use Illuminate\Database\Migrations\Migration;
  
  class CreateUsersTable extends Migration
  {
      /**
       * Run the migrations.
       *
       * @return void
       */
      public function up()
      {
          Schema::create('users', function (Blueprint $table) {
              $table-&gt;increments('id');
              $table-&gt;string('name');
              $table-&gt;string('email')-&gt;unique();
              $table-&gt;string('password', 60);
              $table-&gt;rememberToken();
              $table-&gt;timestamps();
          });
      }
  
      /**
       * Reverse the migrations.
       *
       * @return void
       */
      public function down()
      {
          Schema::drop('users');
      }
  }
  </code></pre>
  
  <p>I believe that everything here is correct, and now here is the <strong>user class</strong>.</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 = ['name', 'email', 'password'];
  
      /**
       * The attributes excluded from the model's JSON form.
       *
       * @var array
       */
      protected $hidden = ['password', 'remember_token'];
  
  }
  </code></pre>
  
  <p>And now lastly is the all important <strong>database seeder</strong></p>
  
  <pre><code>&lt;?php
  
  use Illuminate\Database\Seeder;
  use Illuminate\Database\Eloquent\Model;
  
  class DatabaseSeeder extends Seeder
  {
      /**
       * Run the database seeds.
       *
       * @return void
       */
      public function run()
      {
          Model::unguard();
  
          // $this-&gt;call('UserTableSeeder');
          $this-&gt;call('UserTableSeeder');
  
          Model::reguard();
      }
  }
  
  class UserTableSeeder extends Seeder
  {
      public function run()
      {
  
          DB::table('users')-&gt;delete();
  
          User::create(['email' =&gt; 'John@doe.com']);
  
      }
  }
  </code></pre>
  
  <p>So that's it my full syntax, if any more files are required then please request them and I will update my question.</p>