示例#1
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     $data = ['name' => 'Person Counter', 'created_at' => Carbon\Carbon::create(), 'updated_at' => Carbon\Carbon::create()];
     DeviceType::create($data);
 }
示例#2
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     $data = [['uuid' => 'DEVICE_1', 'device_type_id' => DeviceType::first()->id, 'store_id' => Store::first()->id, 'created_at' => Carbon\Carbon::create(), 'updated_at' => Carbon\Carbon::create()]];
     Device::insert($data);
 }