feat: 分离前端列表

This commit is contained in:
JaguarJack
2022-12-06 19:27:38 +08:00
parent 0024080c28
commit 727e887729
38 changed files with 552 additions and 146 deletions

View File

@@ -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