bigInteger('bundle_id')->unsigned(); $table->foreign('bundle_id') ->references('id') ->on('bundles') ->onDelete('cascade'); $table->bigInteger('item_id')->unsigned(); $table->foreign('item_id') ->references('id') ->on('items') ->onDelete('cascade'); $table->bigInteger('from_warehouse_id')->unsigned(); $table->foreign('from_warehouse_id') ->references('id') ->on('warehouses') ->onDelete('cascade'); $table->double('qty'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('bundle_item'); } }