PrizeSeeder.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?php
  2. namespace Database\Seeders;
  3. use Illuminate\Database\Console\Seeds\WithoutModelEvents;
  4. use Illuminate\Database\Seeder;
  5. use \App\Models\Prize;
  6. class PrizeSeeder extends Seeder
  7. {
  8. /**
  9. * Run the database seeds.
  10. *
  11. * @return void
  12. */
  13. public function run()
  14. {
  15. Prize::insert([
  16. [
  17. 'activity_id' => '0',
  18. 'name' => '現金 16,800 元',
  19. 'provider' => '亞新',
  20. 'count' => 2,
  21. 'created_at' => now(),
  22. 'updated_at' => now(),
  23. ],
  24. [
  25. 'activity_id' => '0',
  26. 'name' => '現金 12,000 元',
  27. 'provider' => '亞新',
  28. 'count' => 1,
  29. 'created_at' => now(),
  30. 'updated_at' => now(),
  31. ],
  32. [
  33. 'activity_id' => '0',
  34. 'name' => '現金 10,000 元',
  35. 'provider' => '亞新',
  36. 'count' => 1,
  37. 'created_at' => now(),
  38. 'updated_at' => now(),
  39. ],
  40. [
  41. 'activity_id' => '0',
  42. 'name' => '大潤發禮券 10,000 元',
  43. 'provider' => '亞新',
  44. 'count' => 4,
  45. 'created_at' => now(),
  46. 'updated_at' => now(),
  47. ],
  48. [
  49. 'activity_id' => '0',
  50. 'name' => '現金 8,800 元',
  51. 'provider' => '亞新',
  52. 'count' => 5,
  53. 'created_at' => now(),
  54. 'updated_at' => now(),
  55. ],
  56. [
  57. 'activity_id' => '0',
  58. 'name' => '大潤發禮券 8,000 元',
  59. 'provider' => '亞新',
  60. 'count' => 6,
  61. 'created_at' => now(),
  62. 'updated_at' => now(),
  63. ],
  64. [
  65. 'activity_id' => '0',
  66. 'name' => '現金 6,600 元',
  67. 'provider' => '亞新',
  68. 'count' => 13,
  69. 'created_at' => now(),
  70. 'updated_at' => now(),
  71. ],
  72. [
  73. 'activity_id' => '0',
  74. 'name' => '大潤發禮券 6,000 元',
  75. 'provider' => '亞新',
  76. 'count' => 10,
  77. 'created_at' => now(),
  78. 'updated_at' => now(),
  79. ],
  80. [
  81. 'activity_id' => '0',
  82. 'name' => '大潤發禮券 3,000 元',
  83. 'provider' => '亞新',
  84. 'count' => 80,
  85. 'created_at' => now(),
  86. 'updated_at' => now(),
  87. ],
  88. [
  89. 'activity_id' => '0',
  90. 'name' => '大潤發禮券 2,000 元',
  91. 'provider' => '亞新',
  92. 'count' => 50,
  93. 'created_at' => now(),
  94. 'updated_at' => now(),
  95. ],
  96. [
  97. 'activity_id' => '0',
  98. 'name' => '福利即享券 2,000 元',
  99. 'provider' => '亞新',
  100. 'count' => 50,
  101. 'created_at' => now(),
  102. 'updated_at' => now(),
  103. ],
  104. [
  105. 'activity_id' => '0',
  106. 'name' => '普獎現金 1,200 元',
  107. 'provider' => '亞新',
  108. 'count' => 0,
  109. 'created_at' => now(),
  110. 'updated_at' => now(),
  111. ],
  112. ]);
  113. }
  114. }