SocialiteClientsTableSeeder.php 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?php
  2. declare(strict_types=1);
  3. namespace Tests\Commands\Upgrade\Databases\V17_0_0\Seeds;
  4. use Illuminate\Database\Seeder;
  5. use Illuminate\Support\Facades\DB;
  6. class SocialiteClientsTableSeeder extends Seeder
  7. {
  8. /**
  9. * Run the database seeds.
  10. *
  11. * @return void
  12. */
  13. public function run()
  14. {
  15. if (DB::table('socialite_clients')->exists()) {
  16. $this->command->getOutput()->writeln('<question>Skipping: ' . __CLASS__ . '</question>');
  17. return;
  18. }
  19. DB::table('socialite_clients')->insert([
  20. [
  21. 'id' => 1,
  22. 'name' => 'qq',
  23. 'icon' => 'qq',
  24. 'client_id' => '',
  25. 'client_secret' => '',
  26. 'created_at' => '2019-05-08 22:13:54',
  27. 'updated_at' => '2019-05-08 22:13:54',
  28. 'deleted_at' => null,
  29. ],
  30. [
  31. 'id' => 2,
  32. 'name' => 'weibo',
  33. 'icon' => 'weibo',
  34. 'client_id' => '',
  35. 'client_secret' => '',
  36. 'created_at' => '2019-05-08 22:13:54',
  37. 'updated_at' => '2019-05-08 22:13:54',
  38. 'deleted_at' => null,
  39. ],
  40. [
  41. 'id' => 3,
  42. 'name' => 'github',
  43. 'icon' => 'github',
  44. 'client_id' => '',
  45. 'client_secret' => '',
  46. 'created_at' => '2019-05-08 22:13:54',
  47. 'updated_at' => '2019-05-08 22:13:54',
  48. 'deleted_at' => null,
  49. ],
  50. [
  51. 'id' => 4,
  52. 'name' => 'google',
  53. 'icon' => 'google',
  54. 'client_id' => '',
  55. 'client_secret' => '',
  56. 'created_at' => '2019-05-14 23:26:38',
  57. 'updated_at' => '2019-05-14 23:26:38',
  58. 'deleted_at' => null,
  59. ],
  60. [
  61. 'id' => 5,
  62. 'name' => 'facebook',
  63. 'icon' => 'facebook',
  64. 'client_id' => '',
  65. 'client_secret' => '',
  66. 'created_at' => '2019-05-14 23:26:38',
  67. 'updated_at' => '2019-05-14 23:26:38',
  68. 'deleted_at' => null,
  69. ],
  70. [
  71. 'id' => 6,
  72. 'name' => 'vkontakte',
  73. 'icon' => 'vk',
  74. 'client_id' => '',
  75. 'client_secret' => '',
  76. 'created_at' => '2019-07-01 23:26:38',
  77. 'updated_at' => '2019-07-01 23:26:38',
  78. 'deleted_at' => null,
  79. ],
  80. ]);
  81. }
  82. }