/**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     DB::statement('SET FOREIGN_KEY_CHECKS=0;');
     DB::table($this->table)->truncate();
     parent::run();
     DB::statement('SET FOREIGN_KEY_CHECKS=1;');
 }
 public function run()
 {
     // Recommended when importing larger CSVs
     DB::disableQueryLog();
     // Uncomment the below to wipe the table clean before populating
     DB::table($this->table)->truncate();
     parent::run();
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     // Model::unguard();
     //
     // $this->call(UserTableSeeder::class);
     //
     // Model::reguard();
     DB::disableQueryLog();
     parent::run();
 }
 public function run()
 {
     $this->command->info('ShopTableSeeder called.');
     // Recommended when importing larger CSVs
     DB::disableQueryLog();
     // Uncomment the below to wipe the table clean before populating
     DB::table($this->table)->truncate();
     parent::run();
     $this->command->info('finished.');
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     $protein = Nutrient::where('name', 'Iron')->first();
     if ($protein == null) {
         $protein = new Nutrient();
         $protein->id = 303;
         $protein->unit = 'mg';
         $protein->name = 'Iron';
         $protein->save();
     }
     DB::disableQueryLog();
     parent::run();
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     $protein = Nutrient::where('name', 'Vitamin A')->first();
     if ($protein == null) {
         $protein = new Nutrient();
         $protein->id = 320;
         $protein->unit = 'ug';
         $protein->name = 'Vitamin A';
         $protein->save();
     }
     DB::disableQueryLog();
     parent::run();
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     $protein = Nutrient::where('name', 'Carbohydrates')->first();
     if ($protein == null) {
         $protein = new Nutrient();
         $protein->id = 205;
         $protein->unit = 'g';
         $protein->name = 'Carbohydrates';
         $protein->save();
     }
     DB::disableQueryLog();
     parent::run();
 }
Example #8
0
 public function run()
 {
     parent::run();
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     DB::disableQueryLog();
     DB::table($this->table)->truncate();
     parent::run();
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     DB::disableQueryLog();
     parent::run();
 }
Example #11
0
 public function readRow(array $row, array $mapping, callable $after = null)
 {
     return $this->processRow(parent::readRow($row, $mapping));
 }
 /**
  * Run the hochschulkompass seeder.
  */
 public function run()
 {
     parent::run();
     DB::table('universities')->update(['updated_at' => Carbon::now(), 'created_at' => Carbon::now()]);
 }