id(); $table->string('name'); $table->char('first'); $table->string('logo'); $table->integer('sort_order'); $table->integer('status'); $table->timestamps(); }); Schema::table('products', function (Blueprint $table) { $table->unsignedInteger('brand_id')->after('id')->index(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('brands'); Schema::table('products', function (Blueprint $table) { $table->dropColumn('brand_id'); }); } }