*/ class ProjectFileFactory extends Factory { /** * @return array */ public function definition(): array { return [ 'revision_id' => ProjectRevision::factory(), 'role' => 'body', 'original_filename' => 'body.stl', 'storage_key' => fake()->unique()->uuid().'.stl', 'extension' => 'stl', 'media_type' => 'model/stl', 'byte_size' => 1024, 'sha256' => hash('sha256', fake()->unique()->uuid()), 'uploaded_by' => User::factory()->create(['role' => 'admin'])->id, ]; } }