My SMM panel
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 
 

210 рядки
4.6 KiB

  1. <?php
  2. namespace Database\Seeders;
  3. use Illuminate\Database\Seeder;
  4. use App\Models\User;
  5. use App\Models\Order;
  6. use App\Models\Service;
  7. use Illuminate\Support\Facades\Hash;
  8. use \Stripe\Stripe;
  9. use \Stripe\Customer;
  10. class DatabaseSeeder extends Seeder
  11. {
  12. /**
  13. * Seed the application's database.
  14. *
  15. * @return void
  16. */
  17. public function run()
  18. {
  19. Stripe::setApiKey(env('STRIPE_SECRET'));
  20. Service::create([
  21. 'name' => 'Unique Views with Engagements',
  22. 'type' => 'views',
  23. 'site' => 'youtube',
  24. 'minimum' => 1000,
  25. 'maximum' => 500000,
  26. 'price' => 11,
  27. 'available' => true,
  28. ]);
  29. Service::create([
  30. 'name' => 'Language Targeted Views',
  31. 'type' => 'views',
  32. 'site' => 'youtube',
  33. 'modifier' => 'language',
  34. 'minimum' => 1000,
  35. 'maximum' => 100000,
  36. 'price' => 20,
  37. 'available' => true,
  38. ]);
  39. Service::create([
  40. 'name' => 'Location Targeted Views',
  41. 'type' => 'views',
  42. 'site' => 'youtube',
  43. 'modifier' => 'location',
  44. 'minimum' => 1000,
  45. 'maximum' => 100000,
  46. 'price' => 25,
  47. 'available' => true,
  48. ]);
  49. Service::create([
  50. 'name' => 'Random Comments',
  51. 'type' => 'comments',
  52. 'site' => 'youtube',
  53. 'minimum' => 100,
  54. 'maximum' => 10000,
  55. 'price' => 55,
  56. 'available' => true,
  57. ]);
  58. Service::create([
  59. 'name' => 'Subscribers',
  60. 'type' => 'subscribers',
  61. 'site' => 'youtube',
  62. 'minimum' => 100,
  63. 'maximum' => 10000,
  64. 'price' => 50,
  65. 'available' => true,
  66. ]);
  67. Service::create([
  68. 'name' => 'Likes',
  69. 'type' => 'likes',
  70. 'site' => 'youtube',
  71. 'minimum' => 1000,
  72. 'maximum' => 100000,
  73. 'price' => 30,
  74. 'available' => true,
  75. ]);
  76. Service::create([
  77. 'name' => 'Likes',
  78. 'type' => 'likes',
  79. 'site' => 'instagram',
  80. 'minimum' => 200,
  81. 'maximum' => 10000,
  82. 'price' => 15,
  83. 'available' => true,
  84. ]);
  85. Service::create([
  86. 'name' => 'Impressions With Profile Visits',
  87. 'type' => 'impressions',
  88. 'site' => 'instagram',
  89. 'minimum' => 200,
  90. 'maximum' => 20000,
  91. 'price' => 35,
  92. 'available' => true,
  93. ]);
  94. Service::create([
  95. 'name' => 'Post Impressions',
  96. 'type' => 'impressions',
  97. 'site' => 'instagram',
  98. 'minimum' => 1000,
  99. 'maximum' => 1000000,
  100. 'price' => 6,
  101. 'available' => true,
  102. ]);
  103. Service::create([
  104. 'name' => 'Profile Visits',
  105. 'type' => 'profile',
  106. 'site' => 'instagram',
  107. 'minimum' => 1000,
  108. 'maximum' => 100000,
  109. 'price' => 6,
  110. 'available' => true,
  111. ]);
  112. Service::create([
  113. 'name' => 'Followers',
  114. 'type' => 'followers',
  115. 'site' => 'twitter',
  116. 'minimum' => 100,
  117. 'maximum' => 10000,
  118. 'price' => 12,
  119. 'available' => true,
  120. ]);
  121. Service::create([
  122. 'name' => 'Video Views',
  123. 'type' => 'views',
  124. 'site' => 'twitter',
  125. 'minimum' => 1000,
  126. 'maximum' => 100000,
  127. 'price' => 15,
  128. 'available' => true,
  129. ]);
  130. Service::create([
  131. 'name' => 'Impressions',
  132. 'type' => 'impressions',
  133. 'site' => 'twitter',
  134. 'minimum' => 1000,
  135. 'maximum' => 100000,
  136. 'price' => 15,
  137. 'available' => true,
  138. ]);
  139. Service::create([
  140. 'name' => 'Followers',
  141. 'type' => 'followers',
  142. 'site' => 'twitter',
  143. 'minimum' => 100,
  144. 'maximum' => 100000,
  145. 'price' => 15,
  146. 'available' => true,
  147. ]);
  148. Service::create([
  149. 'name' => 'Likes',
  150. 'type' => 'likes',
  151. 'site' => 'tiktok',
  152. 'minimum' => 100,
  153. 'maximum' => 100000,
  154. 'price' => 13,
  155. 'available' => true,
  156. ]);
  157. Service::create([
  158. 'name' => 'Shares',
  159. 'type' => 'shares',
  160. 'site' => 'tiktok',
  161. 'minimum' => 100,
  162. 'maximum' => 100000,
  163. 'price' => 15,
  164. 'available' => true,
  165. ]);
  166. Service::create([
  167. 'name' => 'Followers',
  168. 'type' => 'followers',
  169. 'site' => 'tiktok',
  170. 'minimum' => 100,
  171. 'maximum' => 100000,
  172. 'price' => 12,
  173. 'available' => true,
  174. ]);
  175. User::create([
  176. 'name' => 'test_user_unverified',
  177. 'email' => 'unverified@example.com',
  178. 'role' => 'client',
  179. 'customer_id' => Customer::create(['email' => 'unverified@example.com'])->id,
  180. 'active' => true,
  181. 'password' => Hash::make("test123")
  182. ]);
  183. $test_user = User::create([
  184. 'name' => 'test_user_verified',
  185. 'email' => 'verified@example.com',
  186. 'email_verified_at' => now(),
  187. 'credits' => 250,
  188. 'customer_id' => Customer::create(['email' => 'verified@example.com'])->id,
  189. 'role' => 'client',
  190. 'active' => true,
  191. 'password' => Hash::make("test123")
  192. ]);
  193. User::create([
  194. 'name' => 'test_admin_verified',
  195. 'email' => 'admin_verified@example.com',
  196. 'email_verified_at' => now(),
  197. 'customer_id' => Customer::create(['email' => 'admin_verified@example.com'])->id,
  198. 'role' => 'admin',
  199. 'active' => true,
  200. 'password' => Hash::make("test123")
  201. ]);
  202. Order::factory()->count(15)->for($test_user)->create();
  203. Order::factory()->count(25)->create();
  204. }
  205. }