mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
add user ban log from cleanup.php
This commit is contained in:
@@ -124,6 +124,15 @@ class User extends Authenticatable
|
||||
return Locale::$languageMaps[$this->language->site_lang_folder] ?? 'en';
|
||||
}
|
||||
|
||||
public function getSiteLangFolderAttribute()
|
||||
{
|
||||
$result = optional($this->language)->site_lang_folder;
|
||||
if ($result && in_array($result, ['en', 'chs', 'cht'])) {
|
||||
return $result;
|
||||
}
|
||||
return 'en';
|
||||
}
|
||||
|
||||
|
||||
public function exams()
|
||||
{
|
||||
|
||||
@@ -6,4 +6,5 @@ class UserBanLog extends NexusModel
|
||||
{
|
||||
protected $table = 'user_ban_logs';
|
||||
|
||||
protected $fillable = ['uid', 'username', 'operator', 'reason'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user