SiteInfoSeeder.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. use Illuminate\Database\Seeder;
  3. use Illuminate\Support\Facades\DB;
  4. class SiteInfoSeeder extends Seeder
  5. {
  6. /**
  7. * Run the database seeds.
  8. *
  9. * @return void
  10. */
  11. public function run()
  12. {
  13. //
  14. DB::table('information')->insert([
  15. 'site_title' => 'Vien Blog',
  16. 'site_keywords' => 'Laravel,Markdown,免费,开源,博客,Blog',
  17. 'site_description' => '免费开源博客、基于Laravel5.8、支持Markdown、支持图片拖拽上传',
  18. 'author_name' => 'Vien',
  19. 'author_intro' => '一名有职业素养的铲屎官,欢迎云撸猫',
  20. 'author_avatar' => '/images/avatars/lbxx-14.jpeg',
  21. 'navigation' => json_encode([
  22. [
  23. "title" => "首页",
  24. "url" => "https://vienblog.com"
  25. ],
  26. [
  27. "title" => "关于作者",
  28. "url" => "https://vienblog.com"
  29. ],
  30. [
  31. "title" => "打赏作者",
  32. "url" => "https://viencoding.com/pay"
  33. ],
  34. [
  35. "title" => "建站教程",
  36. "url" => "https://vienblog.com"
  37. ],
  38. [
  39. "title" => "科学上网",
  40. "url" => "https://viencoding.com/article/122"
  41. ],
  42. [
  43. "title" => "网站导航",
  44. "url" => "https://vienblog.com"
  45. ],
  46. [
  47. "title" => "机器学习",
  48. "url" => "https://vienblog.com/category/机器学习"
  49. ],
  50. [
  51. "title" => "Laravel教程",
  52. "url" => "https://vienblog.com"
  53. ],
  54. [
  55. "title" => "Python教程",
  56. "url" => "https://vienblog.com"
  57. ],
  58. [
  59. "title" => "Git教程",
  60. "url" => "https://vienblog.com"
  61. ],
  62. [
  63. "title" => "Docker教程",
  64. "url" => "https://vienblog.com"
  65. ],
  66. [
  67. "title" => "友情链接",
  68. "url" => "https://vienblog.com"
  69. ]
  70. ], JSON_UNESCAPED_UNICODE),
  71. 'created_at' => 1553745930,
  72. 'updated_at' => 1553745930,
  73. ]);
  74. }
  75. }