UsersTableSeeder.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?php
  2. namespace Database\Seeders;
  3. use Illuminate\Database\Console\Seeds\WithoutModelEvents;
  4. use Illuminate\Database\Seeder;
  5. use Illuminate\Support\Facades\DB;
  6. class UsersTableSeeder extends Seeder
  7. {
  8. /**
  9. * Run the database seeds.
  10. *
  11. * @return void
  12. */
  13. public function run()
  14. {
  15. DB::table('users')->insert([
  16. [
  17. 'id' => 1,
  18. 'type' => 'tel',
  19. ],
  20. [
  21. 'id' => 2,
  22. 'type' => 'fixe',
  23. ],[
  24. 'id' => 3,
  25. 'type' => 'email',
  26. ],[
  27. 'id' => 4,
  28. 'type' => 'maps',
  29. ],[
  30. 'id' => 5,
  31. 'type' => 'youtube',
  32. ],[
  33. 'id' => 6,
  34. 'type' => 'facebook',
  35. ],[
  36. 'id' => 7,
  37. 'type' => 'instagram',
  38. ],
  39. [
  40. 'id' => 8,
  41. 'type' => 'twitter',
  42. ],
  43. [
  44. 'id' => 9,
  45. 'type' => 'linkdin',
  46. ],
  47. ]);
  48. }
  49. }