#28 - holidays management

This commit is contained in:
Adrian Hopek
2022-01-24 14:03:39 +01:00
parent 6854c7a9f8
commit 29d81030ac
20 changed files with 792 additions and 9 deletions

View File

@@ -0,0 +1,21 @@
<?php
declare(strict_types=1);
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Carbon;
class HolidayFactory extends Factory
{
public function definition(): array
{
$now = Carbon::now();
return [
"name" => $this->faker->word,
"date" => $this->faker->dateTimeBetween($now->startOfYear(), $now->endOfYear()),
];
}
}