increments('id'); $table->string('alias')->index()->comment('别名'); $table->tinyInteger('urltype')->default('0')->comment('类型(1:系统内 0:系统外)'); $table->tinyInteger('display')->default('1')->comment('是否显示(0:不显示 1:显示)'); $table->string('title')->comment('栏目名称'); $table->string('color')->comment('显示颜色')->nullable(); $table->string('pagealias')->comment('系统页面别名'); $table->string('tag')->comment('导航关联'); $table->string('url')->comment('链接地址')->nullable(); $table->string('target')->comment('打开方式'); $table->integer('order')->comment('排序'); $table->tinyInteger('is_personal')->comment('是否个人中心(0:不是 1:是)')->nullable(); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('navigations'); } }