belongsTo(Unit::class, 'base_unit_id'); } public function childUnits(): HasMany { return $this->hasMany(Unit::class, 'base_unit_id'); } }