app/Models/Traits/HasLocationTrait.php
public function getRevisedLocationAttribute($id)
    {
        if ($id) {
            $location = $this->location()->find($id);

            if ($location instanceof Location) {
                return $location->trail;
            }
        }

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

            if ($location instanceof Location) {
                return $location->trail;
            }
        }

        return;
    }
Retrieves the revised location attribute.

@param int|string $id

@return null|string