'datetime']; } protected static function booted(): void { static::creating(function (Payment $payment) { if (! $payment->uuid) { $payment->uuid = (string) Str::uuid(); } }); } public function getRouteKeyName(): string { return 'uuid'; } public function bill(): BelongsTo { return $this->belongsTo(Bill::class, 'bill_id'); } }