belongsTo(WalletTransRecord::class, 'trans_record_id', 'id'); } /** * @Author FelixYin * @description 支付记录所属钱包 */ public function wallet() { return $this->belongsTo(Wallet::class, 'wallet_id', 'id'); } }