This repo is from jenssegers laravel-mongodb i have fixed some issues and merged commits for my personal project.