FriendLinkTableSeeder.php 985 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. use Illuminate\Database\Seeder;
  3. use Illuminate\Support\Facades\DB;
  4. class FriendLinkTableSeeder extends Seeder
  5. {
  6. /**
  7. * Run the database seeds.
  8. *
  9. * @return void
  10. */
  11. public function run()
  12. {
  13. //
  14. DB::table('friend_links')->insert([
  15. 'title' => 'Vien Blog',
  16. 'description' => '免费开源博客、基于Laravel5.8、支持Markdown、支持图片拖拽上传',
  17. 'url' => 'https://vienblog.com',
  18. 'follow' => '1',
  19. 'created_at' => 1553745930,
  20. 'updated_at' => 1553745930,
  21. ]);
  22. DB::table('friend_links')->insert([
  23. 'title' => '小白一键VPN',
  24. 'description' => 'ss/ssr一键搭建教程、outline教程、国外VPS优惠购买、免费ss/ssr账号分享',
  25. 'url' => 'https://viencoding.com',
  26. 'follow' => '1',
  27. 'created_at' => 1553745930,
  28. 'updated_at' => 1553745930,
  29. ]);
  30. }
  31. }