public function getAll($lang = "")
    {
        // check if user has permissions to access this link
        if(!User::hasAccess('User', 'read')) {
            return $this->noPermission();
        }

        $orderBy = (isset($_GET['order'])) ? $orderBy = $_GET['order'] : 'userID';
        $orderType = (isset($_GET['type'])) ? $orderType = $_GET['type'] : 'DESC';

        return DB::table('users')
            ->leftJoin('media', 'users.profileImageID', '=', 'media.mediaID')
            ->select("users.userID", "users.email", "users.firstName", "users.lastName", "users.slug", "users.gravatar", "media.url", "media.filename", "media.fileDirectory")
            ->orderBy($orderBy, $orderType)
            ->paginate(User::$rowsPerPage);
    }