Laravel 4 "Table" database.teches "does not exist"

I don’t know why migration is looking for “teches” and not the name “techs” of a real table?

File: TechsTableSeeder.php

class TechsTableSeeder extends Seeder {

/**
 * Run the database seeds.
 *
 * @return void
 */
public function run()
{
    Eloquent::unguard();

    Tech::create(
        [
        'name'=>'technology',
        'description'=>'...',
        'year'=>'2014'
        ]);

}

} 

In php artisan db: seed - class = "TechsTableSeeder", I get the following error in the terminal:

[Light \ the Database \ QueryException]
the SQLSTATE [42S02]: a base table or view not found 1146 Table 'database.teches' does not exist (the SQL: Into of insert teches( name, description, year, updated_at, created_at) values (technology, ... 2014, 2013 -12-30 03:23:39, 2013-12-30 03:23:39))

I don’t know why migration is looking for “teches” and not the name “techs” of a real table?

The Tech.php model exists and is automatically generated using php artisan generate: model Tech as follows:

class Tech extends Eloquent {
    protected $guarded = array();

    public static $rules = array();
}
+4
2

.

protected $table = 'tech';

Tech

+5

, , , :

class TechsTableSeeder extends Seeder {

  public function run()
  {
    $techs = [

    ];

    DB::table('techs')->insert($techs);
  }

}

, .

0

All Articles