app/Models/InventoryStock.php
public function getQuantityMetricAttribute()
    {
        $quantity = $this->getAttribute('quantity');

        if ($this->item && $this->item->metric) {
            $metric = $this->item->metric->name;
        } else {
            $metric = null;
        }

        return trim(sprintf('%s %s', $quantity, $metric));
    }
public function getQuantityMetricAttribute()
    {
        $quantity = $this->getAttribute('quantity');

        if ($this->item && $this->item->metric) {
            $metric = $this->item->metric->name;
        } else {
            $metric = null;
        }

        return trim(sprintf('%s %s', $quantity, $metric));
    }
Accessor for viewing the quantity combined with the item metric.

@return string