* wip * wip * wip * wip * wip * wip * wip * #5 - bump dependencies * #43 - wip * #43 - add composer script * #43 - fix * #43 - fix * #43 - wip * #43 - ecs fix * #43 - cr fix * #43 - cr fix * #43 - fix Co-authored-by: EwelinaLasowy <ewelina.lasowy@blumilk.pl>
This commit is contained in:
22
database/factories/VacationRequestActivityFactory.php
Normal file
22
database/factories/VacationRequestActivityFactory.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
use Toby\Domain\Enums\VacationRequestState;
|
||||
use Toby\Eloquent\Models\VacationRequestActivity;
|
||||
|
||||
class VacationRequestActivityFactory extends Factory
|
||||
{
|
||||
protected $model = VacationRequestActivity::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
"from" => $this->faker->randomElement(VacationRequestState::cases()),
|
||||
"to" => $this->faker->randomElement(VacationRequestState::cases()),
|
||||
];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user