/home/mip/mip/app/Modules/Client/Models/Principals/ContactNumber.php
<?php

namespace QxCMS\Modules\Client\Models\Principals;

use Illuminate\Database\Eloquent\Model;

class ContactNumber extends Model
{
    protected $connection = "client";
    protected $table = "principal_contact_persons_numbers";
    public $module_id = 4;
    
    protected $guarded = [];

    protected $appends = ['hashid'];

    public function getHashidAttribute()
    {
        return hashid($this->id);
    }

    public function person()
    {
        return $this->belongsTo('QxCMS\Modules\Client\Models\Principals\ContactPerson', 'principal_contact_id');
    }
}