Compatibility for Laravel 4.3

Look at https://github.com/laravel/laravel/pull/2980
Merge pull request #376 from mayoz/patch-1

Compatibility for Laravel 4.3