belongsTo(CostUnit::class); } public function status() : BelongsTo { return $this->belongsTo(InvoiceStatus::class, 'status')->first(); } public function invoiceType() : InvoiceType { return $this->belongsTo(InvoiceType::class, 'type', 'slug')->first(); } }