<?php
 use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class ModifyDocAddStyle extends Migration { public function up() { Schema::table('doc', function (Blueprint $table) { $table->text('style')->nullable()->comment('css样式'); }); } public function down() { } } 