This commit is contained in:
Adrian Hopek
2022-01-18 07:39:03 +01:00
parent 7dca5d1e6c
commit acf2eba95d
17 changed files with 644 additions and 32 deletions

View File

@@ -16,7 +16,7 @@ class UserFactory extends Factory
"name" => "{$this->faker->firstName} {$this->faker->lastName}",
"email" => $this->faker->unique()->safeEmail(),
"employment_form" => $this->faker->randomElement(FormOfEmployment::cases()),
"employment_start_date" => $this->faker->dateTimeBetween("2020-10-27"),
"employment_date" => $this->faker->dateTimeBetween("2020-10-27"),
"remember_token" => Str::random(10),
];
}

View File

@@ -15,8 +15,9 @@ return new class() extends Migration {
$table->string("email")->unique();
$table->string("avatar")->nullable();
$table->string("employment_form");
$table->dateTime("employment_start_date");
$table->dateTime("employment_date");
$table->rememberToken();
$table->softDeletes();
$table->timestamps();
});
}