$event->uuid ??= (string) Str::uuid()); } protected function casts(): array { return ['metadata' => 'array', 'occurred_at' => 'immutable_datetime']; } public function license(): BelongsTo { return $this->belongsTo(License::class); } public function installation(): BelongsTo { return $this->belongsTo(DeploymentInstallation::class, 'deployment_installation_id'); } }