integer('currency_id')->unsigned()->nullable(); $table->foreign('currency_id')->references('id')->on('bap_currency'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('products', function (Blueprint $table) { $table->dropColumn('currency_id'); }); } }