usersTableSeeder.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. use Illuminate\Database\Seeder;
  3. class usersTableSeeder extends Seeder
  4. {
  5. /**
  6. * Run the database seeds.
  7. *
  8. * @return void
  9. */
  10. public function run()
  11. {
  12. DB::table('users')->insert([[
  13. 'name' => 'test1',
  14. 'no' => '123456',
  15. 'cre_num' => '410182100000000000',
  16. 'telphone'=> '15200000000',
  17. 'address' => '郑州市金水区东风南路升龙广场',
  18. 'team_id'=> '2',
  19. ],[
  20. 'name' => 'test2',
  21. 'no' => '123456',
  22. 'cre_num' => '410182200000000000',
  23. 'telphone'=> '15200000000',
  24. 'address' => '郑州市金水区东风南路升龙广场',
  25. 'team_id'=> '1',
  26. ]]);
  27. DB::table('team')->insert([[
  28. 'name' => 'team1',
  29. 'introduction' => '111111111111111111',
  30. 'status' => 0
  31. ],[
  32. 'name' => 'team2',
  33. 'introduction' => '432111111111111111',
  34. 'status' => 0
  35. ]]);
  36. DB::table('infos')->insert([[
  37. 'title' => '公告信息1',
  38. 'contents' => '111111111111111111',
  39. 'added_on' => '2019-12-12 10:10:10'
  40. ],[
  41. 'title' => '公告信息2',
  42. 'contents' => '432111111111111111',
  43. 'added_on' => '2019-12-12 10:10:10'
  44. ]]);
  45. }
  46. }