hasOne(FeedbackType::class, 'id', 'type_id'); } /** * 模型关联:用户 * * @return HasOne */ public function account(): HasOne { return $this->hasOne(Account::class, 'id', 'account_id'); } }