increments('id'); $table->string('invoice_path'); $table->double('amount'); $table->integer('booking_id')->unsigned(); $table->foreign('booking_id')->references('id')->on('bookings'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('invoices', function(Blueprint $table) { $table->dropForeign('invoices_booking_id_foreign'); $table->dropColumn('booking_id'); }); Schema::dropIfExists('invoices'); } }