string('CBID', 50)->comment('廠商帳號'); $table->integer('CID')->index('CID')->comment('分類ID'); $table->primary(['CBID','CID']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('BeClassifiedAs'); } }