'array']; } protected static function booted(): void { static::creating(function (DentalPlanItem $item) { if (! $item->uuid) { $item->uuid = (string) Str::uuid(); } }); } public function getRouteKeyName(): string { return 'uuid'; } public function plan(): BelongsTo { return $this->belongsTo(DentalTreatmentPlan::class, 'treatment_plan_id'); } public function billLineItem(): BelongsTo { return $this->belongsTo(BillLineItem::class, 'bill_line_item_id'); } }