increments('id'); $table->string('name'); $table->unsignedInteger('user_id'); $table->string('description'); $table->timestamps(); $table->softDeletes(); // 软删除 }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('companies'); } }