/home/mip/mip/app/Modules/Client/Models/Products/Product.php
<?php

namespace QxCMS\Modules\Client\Models\Products;

use Illuminate\Database\Eloquent\Model;
use Carbon\Carbon;

class Product extends Model
{

    protected $connection = 'client';
    protected $table = 'products';
    public $module_id = 8;

    protected $guarded = [];
    protected $appends = ['hashid'];

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

    public function brand()
    {
        return $this->belongsTo('QxCMS\Modules\Client\Models\Products\ProductBrand', 'brand_id');
    }

    public function category()
    {
        return $this->belongsTo('QxCMS\Modules\Client\Models\Products\ProductCategory', 'category_id');
    }
}