you need to use DB in top of TypesTableSeeder file. Like as bellow:
<?php
use Illuminate\Database\Seeder;
use DB;
/**
* Class TypesTableSeeder
*/
class TypesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('types')->truncate();
DB::table('types')->insert([
'name' => 'Lake',
'marker_file_name' => 'grey.png',
'background_file_name' => '0154214587415',
'description' => 'Description for a lake',
'ShortName' => 'the shortname for a lake',
]);
}
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community