17
database/factories/YearPeriodFactory.php
Normal file
17
database/factories/YearPeriodFactory.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
class YearPeriodFactory extends Factory
|
||||
{
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
"year" => $this->faker->unique()->year,
|
||||
];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user