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