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.
18 lines
373 B
PHP
18 lines
373 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class StandaloneDockerFactory extends Factory
|
|
{
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'uuid' => fake()->uuid(),
|
|
'name' => fake()->unique()->word(),
|
|
'network' => 'coolify',
|
|
'server_id' => 1,
|
|
];
|
|
}
|
|
}
|