increments('id'); $table->integer('user_id')->nullable(); $table->string('user_type', 100)->nullable(); $table->integer('invoicable_id')->nullable(); $table->string('invoicable_type', 100)->nullable(); $table->string('reference', 100)->nullable(); $table->date('weekend')->nullable(); $table->date('created_on')->nullable(); $table->date('due_date')->nullable(); $table->enum('status', ['Pending','Approved'])->nullable(); $table->float('amount')->nullable(); $table->float('balance_due')->nullable(); $table->text('details')->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('invoices'); } }