*/ class BaselineSnapshotItemFactory extends Factory { protected $model = BaselineSnapshotItem::class; /** * @return array */ public function definition(): array { return [ 'baseline_snapshot_id' => BaselineSnapshot::factory(), 'subject_type' => 'policy', 'subject_external_id' => fake()->uuid(), 'policy_type' => 'deviceConfiguration', 'baseline_hash' => hash('sha256', fake()->uuid()), 'meta_jsonb' => ['display_name' => fake()->words(3, true)], ]; } }