mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
user ban log
This commit is contained in:
@@ -103,7 +103,8 @@ class User extends Authenticatable
|
||||
|
||||
public static $commonFields = [
|
||||
'id', 'username', 'email', 'class', 'status', 'added', 'avatar',
|
||||
'uploaded', 'downloaded', 'seedbonus', 'seedtime', 'leechtime'
|
||||
'uploaded', 'downloaded', 'seedbonus', 'seedtime', 'leechtime',
|
||||
'invited_by',
|
||||
];
|
||||
|
||||
public function checkIsNormal(array $fields = ['status', 'enabled'])
|
||||
@@ -139,4 +140,9 @@ class User extends Authenticatable
|
||||
return $this->hasOne(Invite::class, 'invitee_register_uid');
|
||||
}
|
||||
|
||||
public function inviter()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'invited_by');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user