id(); $table->string('code')->unique()->comment('客户代码'); $table->string('name')->comment('客户名称'); $table->string('company_name')->comment('公司名称'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('customers'); } }