improve NeuxsWebGuard

This commit is contained in:
xiaomlove
2022-07-04 14:41:27 +08:00
parent 7d87f34ca4
commit ea94c0f738
16 changed files with 33 additions and 22 deletions

View File

@@ -36,7 +36,7 @@ class Medal extends NexusModel
public function getGetTypeTextAttribute($value): string
{
return self::$getTypeText[$this->get_type]['text'] ?? '';
return nexus_trans("medal.get_types." . $this->get_type);
}
public function users(): \Illuminate\Database\Eloquent\Relations\BelongsToMany