mirror of
https://gitee.com/ctexthuang/hyperf_rbac_framework_server_ctexthuang.git
synced 2025-12-25 23:57:49 +08:00
feat : common redis cache and common logger
This commit is contained in:
@@ -31,4 +31,13 @@ final class AdminUserRepository extends BaseRepository
|
||||
->where('username', $username)
|
||||
->first();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $id
|
||||
* @return array|null
|
||||
*/
|
||||
public function findById(mixed $id): ?array
|
||||
{
|
||||
return $this->getQuery()->whereKey($id)->first()?->toArray() ?? null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user