id()->autoIncrement(); $table->string('note')->nullable(); $table->bigInteger('customer_id')->default(0)->index(); $table->integer('user_id')->default(0)->index(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('note',function (Blueprint $table){ $table->dropForeign('customer_id'); $table->drop(); }); } };