Rewrite the Cursor class to be compatible with latest Laravel
Remove unused interfaces