Enable `HasFactory` on `Environment`, `Project`, `ScheduledTask`, and `StandaloneDocker`, and add dedicated factories for related models to stabilize feature/unit tests. Also bump `visus/cuid2` to `^6.0` and refresh `composer.lock` with the resulting dependency updates.
19 lines
453 B
PHP
19 lines
453 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class ServiceFactory extends Factory
|
|
{
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => fake()->unique()->word(),
|
|
'destination_type' => \App\Models\StandaloneDocker::class,
|
|
'destination_id' => 1,
|
|
'environment_id' => 1,
|
|
'docker_compose_raw' => 'version: "3"',
|
|
];
|
|
}
|
|
}
|