*/ class DockerImageBuildFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'user_id' => User::factory(), 'image_name' => 'ghcr.io/acme/'.fake()->slug(2), 'image_tag' => 'latest', 'dockerfile_content' => implode("\n", [ 'FROM alpine:3.20', 'RUN echo "building"', ]), 'environment' => [ ['key' => 'APP_ENV', 'value' => 'production'], ], 'status' => DockerImageBuild::STATUS_QUEUED, 'build_output' => null, 'successful' => null, 'exit_code' => null, 'queued_at' => now(), 'started_at' => null, 'finished_at' => null, ]; } }