bigInteger('item_id')->unsigned()->nullable(); $table->foreign('item_id') ->references('id') ->on('items') ->onDelete('cascade'); $table->bigInteger('price_list_id')->unsigned()->nullable(); $table->foreign('price_list_id') ->references('id') ->on('price_lists') ->onDelete('cascade'); $table->string('price'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('item_price_list'); } }