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 {
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();
}