increments('id'); $table->integer('employee_id')->nullable(); $table->integer('paid_leave')->nullable(); $table->integer('sick_leave')->nullable(); $table->integer('maternity_leave')->nullable(); $table->integer('paternity_leave')->nullable(); $table->integer('unpaid_leave')->nullable(); $table->integer('absence')->nullable(); $table->integer('user_id')->nullable(); $table->string('user_type', 20)->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('leaves'); } }