mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
grant medal clear user cache
This commit is contained in:
@@ -70,6 +70,7 @@ class MedalRepository extends BaseRepository
|
|||||||
if ($duration > 0) {
|
if ($duration > 0) {
|
||||||
$expireAt = Carbon::now()->addDays($duration)->toDateTimeString();
|
$expireAt = Carbon::now()->addDays($duration)->toDateTimeString();
|
||||||
}
|
}
|
||||||
|
clear_user_cache($uid);
|
||||||
return $user->medals()->attach([$medal->id => ['expire_at' => $expireAt, 'status' => UserMedal::STATUS_NOT_WEARING]]);
|
return $user->medals()->attach([$medal->id => ['expire_at' => $expireAt, 'status' => UserMedal::STATUS_NOT_WEARING]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user