
* - directory refactor * - readme.md update * Update readme.md Co-authored-by: Adrian Hopek <adrian.hopek@blumilk.pl> * Update readme.md Co-authored-by: Ewelina Lasowy <56546832+EwelinaLasowy@users.noreply.github.com> * Update readme.md Co-authored-by: Ewelina Lasowy <56546832+EwelinaLasowy@users.noreply.github.com> * Update readme.md Co-authored-by: Ewelina Lasowy <56546832+EwelinaLasowy@users.noreply.github.com> * Update readme.md Co-authored-by: Adrian Hopek <adrian.hopek@blumilk.pl> Co-authored-by: Ewelina Lasowy <56546832+EwelinaLasowy@users.noreply.github.com>
24 lines
500 B
PHP
24 lines
500 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Toby\Eloquent\Models\Holiday;
|
|
use Toby\Eloquent\Models\YearPeriod;
|
|
|
|
class HolidayFactory extends Factory
|
|
{
|
|
protected $model = Holiday::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
"name" => $this->faker->word,
|
|
"date" => $this->faker->unique->date,
|
|
"year_period_id" => YearPeriod::current()->id,
|
|
];
|
|
}
|
|
}
|