mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
backend change class to vip can set until time
This commit is contained in:
@@ -9,6 +9,11 @@ class UserMedal extends NexusModel
|
||||
const STATUS_NOT_WEARING = 0;
|
||||
const STATUS_WEARING = 1;
|
||||
|
||||
public function getWearingStatusTextAttribute()
|
||||
{
|
||||
return nexus_trans("medal.wearing_status_text." . $this->status);
|
||||
}
|
||||
|
||||
public function medal()
|
||||
{
|
||||
return $this->belongsTo(Medal::class, 'medal_id');
|
||||
|
||||
Reference in New Issue
Block a user