increments('id'); $table->string('product_name')->nullable(); $table->string('invoice_number')->nullable(); $table->date('invoice_date')->nullable(); $table->text('invoice_from')->nullable(); $table->text('invoice_to')->nullable(); $table->text('terms_and_cond')->nullable(); $table->text('notes')->nullable(); $table->float('price')->nullable(); $table->float('tax_rate')->nullable(); $table->string('tax_description')->nullable(); $table->string('currency_name')->nullable(); $table->string('provider_name')->nullable(); $table->string('provider_id')->nullable(); $table->string('provider_status')->nullable(); $table->integer('status')->nullable(); $table->string('plan_name')->nullable(); $table->string('period')->nullable(); $table->integer('company_id')->nullable(); $table->timestamps(); $table->softDeletes(); }); Schema::table('bap_companies', function (Blueprint $table) { $table->date('subscription_valid_until')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('bap_companies', function (Blueprint $table) { $table->dropColumn(['subscription_valid_until']); }); Schema::dropIfExists('bap_subscription_invoice'); } }