public function run()
 {
     // Clear data on table if exists.
     DB::table('contactus')->delete();
     // Seed table with data below.
     ContactUs::create(['title' => 'Animal Shelter', 'address' => '111 Someplace Street', 'city' => 'Heaven', 'state' => 'NJ', 'zip' => '10000', 'email_1' => '*****@*****.**', 'email_2' => '*****@*****.**', 'phone_1' => '777-777-1111', 'phone_2' => '888-888-0000']);
     // Display message if seeding was successful.
     $this->command->info('Contact Us table seeded!');
 }
Exemplo n.º 2
0
 public function run()
 {
     ContactUs::create(['number' => 13232323232.0, 'people' => '林小姐', 'postcode' => '666666', 'address' => '广州市天河区水荫路34号省文化厅大院演音大楼205', 'site' => 'wwwgzhm.com']);
 }