hasOne('ComplainCategory', 'id', 'cid'); } /** * @Notes: 关联用户模型 * @Author: */ public function user() { return $this->hasOne(User::class, 'id', 'uid'); } }