Пример #1
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     DB::statement('SET FOREIGN_KEY_CHECKS = 0');
     // empty table first
     Location::truncate();
     // create 50 records
     // factory(model::class, number_of_records)->create();
     factory(Location::class, 50)->create();
     // $this->call('UserTableSeeder');
 }