title: Laravel Seed db:seed [Symfony\Component\Debug\Exception\FatalThrowableError] Fatal error: Class 'model' not found
body: <p>I 'm taking the FactoryModel Tool to populate the database for THIS Do the following :</p>
  
  <p>Create Table :</p>
  
  <pre><code>Php artisan make:model “Users” –m 
  </code></pre>
  
  <p>Up mysql : </p>
  
  <pre><code>php artisan migrate
  </code></pre>
  
  <p>migrate:</p>
  
  <pre><code>{
  
  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;enum('type',['Miembro','Administrador'])-&gt;default('Miembro');
          $table-&gt;rememberToken();
          $table-&gt;timestamps();
      });
  }
  
  
  public function down()
  {
      Schema::drop('users');
  }
  }
  </code></pre>
  
  <p>Model Users</p>
  
  <pre><code>{
   use Authenticatable, Authorizable, CanResetPassword; 
  
   protected $table = 'users'; 
  
   protected $fillable = ['name', 'email', 'password','type']; 
  
  protected $hidden = [
  'password', 'remember_token',
  ];
  }
  </code></pre>
  
  <p>in ModelFactory.php; </p>
  
  <pre><code>$factory-&gt;define(App\User::class, function (Faker\Generator $faker) {
  return [
  'name' =&gt; $faker-&gt;name,
  'email' =&gt; $faker-&gt;safeEmail,
  'password' =&gt; bcrypt('123'),
  'type' =&gt; 'administrador',
  'remember_token' =&gt; str_random(10),
  ];
  
  });
  </code></pre>
  
  <p>in dataseSeeder.php:</p>
  
  <pre><code> public function run()
  {
  model::unguard();
  
  factory('App\User','Administrador',3)-&gt;create();
  
  model::reguard();
  </code></pre>
  
  <p>}</p>
  
  <p>migrate BD :</p>
  
  <pre><code>  php artisan db:seed 
  </code></pre>
  
  <p>ERROR:
      [Symfony\Component\Debug\Exception\FatalThrowableError]
      Fatal error: Class 'model' not found</p>
  
  <p>I appreciate your help</p>
  
  <p>DGR</p>