belongsTo('Cate', 'cate_id'); } public function usersType() { return $this->belongsTo('UsersType', 'view_auth'); } }