Make it compatible with laravel 4 and above

I would like to use the library in L 4.1. Help me fix the Issue #7