feat: add vip payment and member center
This commit is contained in:
@@ -197,6 +197,14 @@ class User extends Authenticatable
|
||||
return $this->vipLevel?->icon ?? '';
|
||||
}
|
||||
|
||||
/**
|
||||
* 关联:当前用户的 VIP 购买订单记录
|
||||
*/
|
||||
public function vipPaymentOrders(): HasMany
|
||||
{
|
||||
return $this->hasMany(VipPaymentOrder::class, 'user_id')->latest('id');
|
||||
}
|
||||
|
||||
// ── 职务相关关联 ──────────────────────────────────────────────────────
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user