/home/mip/mip/app/Modules/Likod/User.php
<?php

namespace QxCMS\Modules\Likod;

use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable
{
    protected $connection = 'qxcms';
    protected $table = 'users';
    public $module_id = 3;
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'name', 'email', 'password', 'role_id',
    ];

    /**
     * The attributes excluded from the model's JSON form.
     *
     * @var array
     */
    protected $hidden = [
        'password', 'remember_token',
    ];

    protected $appends = ['hashid'];
    /*
     * Model Accessors
     */

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

    /*
     * Model Relationships
     */
    public function role()
    {
        return $this->belongsTo('QxCMS\Modules\Likod\Models\Settings\Roles\Role', 'role_id');
    }

    public function menu_id()
    {
        return $this->menu_id;
    }
}