userdetails page show bonus addition expire time

This commit is contained in:
xiaomlove
2025-07-15 02:03:33 +07:00
parent d64243fe6a
commit b3d58ef4cc
2 changed files with 4 additions and 2 deletions

View File

@@ -476,7 +476,7 @@ class User extends Authenticatable implements FilamentUser, HasName
public function medals(): \Illuminate\Database\Eloquent\Relations\BelongsToMany
{
return $this->belongsToMany(Medal::class, 'user_medals', 'uid', 'medal_id')
->withPivot(['id', 'expire_at', 'status', 'priority'])
->withPivot(['id', 'expire_at', 'status', 'priority', 'bonus_addition_expire_at'])
->withTimestamps()
->orderByPivot('priority', 'desc')
;