feat: 分离前端列表
This commit is contained in:
@@ -81,6 +81,16 @@ class Users extends Model implements AuthenticatableContract, JWTSubject
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* is super admin
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isSuperAdmin(): bool
|
||||
{
|
||||
return $this->{$this->primaryKey} == config('catch.super_admin');
|
||||
}
|
||||
|
||||
/**
|
||||
* update
|
||||
* @param $id
|
||||
|
Reference in New Issue
Block a user