'datetime', 'metadata' => 'array']; } protected static function booted(): void { static::creating(function (WebinarRegistration $reg) { if (empty($reg->uuid)) { $reg->uuid = (string) Str::uuid(); } if (empty($reg->access_token)) { $reg->access_token = Str::random(48); } }); } public function getRouteKeyName(): string { return 'uuid'; } public function room(): BelongsTo { return $this->belongsTo(Room::class, 'room_id'); } public function isApproved(): bool { return $this->status === 'approved'; } }