Explorar o código

update admin dashboard vientech url

Vien %!s(int64=6) %!d(string=hai) anos
pai
achega
a7352a27ac

+ 49 - 0
database/migrations/2019_04_26_020035_create_comments_table.php

@@ -0,0 +1,49 @@
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class CreateCommentsTable extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::create('comments', function (Blueprint $table) {
+            $table->increments('id');
+            $table->string('content', 255)->default('')->comment('content');
+            $table->string('uuid')->unique();
+            $table->string('title', 255)->default('')->comment('title');
+            $table->string('keywords')->default('')->comment('keywords');
+            $table->longText('markdown')->nullable()->comment('markdown content');
+            $table->integer('user_id')->default(0)->comment('author id');
+            $table->integer('cate_id')->default(0)->comment('category id');
+            $table->integer('comment_count')->default(0)->comment('comment count');
+            $table->integer('read_count')->default(0)->comment('read count');
+            $table->tinyInteger('status')->default(1)->comment('status: 1-public;0-private');
+            $table->integer('sort')->default(0)->comment('sort');
+            $table->tinyInteger('is_top')->default(0)->comment('sticky to top');
+            $table->integer('updated_at');
+            $table->integer('created_at');
+            $table->integer('deleted_at')->nullable();
+            $table->index('title');
+            $table->index('cate_id');
+            $table->index('user_id');
+            $table->index('created_at');
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::dropIfExists('comments');
+    }
+}

+ 1 - 1
resources/views/admin/home.blade.php

@@ -9,7 +9,7 @@
             <h5>关于作者</h5>
             <p>博客: <a href="https://vienblog.com"><strong>Vien Blog</strong></a></p>
             <p>邮箱: support@vienblog.com</p>
-            <p>一键搭建VPN教程、免费ss/ssr账号分享: <a href="https://vien.tech"><strong>Vien Tech</strong></a></p>
+            <p>其他博客(有小秘密哈哈): <a href="https://viencoding.com"><strong>Vien Tech</strong></a></p>
             <hr>
             <h5>关于Vien Blog</h5>
             <p>