Pagination via the pagination() method is not working from related resources (i.e. notes, attachments).
This appears to be due to the wrong variable being referenced when calling new Pagination() within the withPagination method.
Fix has been suggested in #91