bigIncrements('id'); $table->bigInteger('purchase_order_id')->unsigned(); $table->foreign('purchase_order_id') ->references('id') ->on('purchase_orders') ->onDelete('cascade'); $table->string('no_bill'); $table->date('bill_date'); $table->date('due_date'); $table->string('amount'); $table->enum('status', ['draft', 'open']); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('bills'); } }