app/Models/WorkOrder.php
public function getRevisedPriorityAttribute($id)
    {
        if ($id) {
            $priority = $this->priority()->find($id);

            if ($priority instanceof Priority) {
                return $priority->getLabel();
            }
        }

        return;
    }
public function getRevisedPriorityAttribute($id)
    {
        if ($id) {
            $priority = $this->priority()->find($id);

            if ($priority instanceof Priority) {
                return $priority->getLabel();
            }
        }

        return;
    }
Retrieves the revised priority attribute.

@param int|string $id

@return null|string