Пример #1
0
 /**
  * @param int|null $pageSize
  * @return mixed
  */
 public function getAllUsers($pageSize = null)
 {
     try {
         $users = $this->userRepository->with('localRole')->with('globalRole')->paginate($pageSize);
     } catch (RepositoryException $e) {
         throw new AuthException($e->getMessage() . ' Cannot return the users list.', null, $e);
     }
     return $users;
 }