Compatibility for Laravel 4.3

Look at https://github.com/laravel/laravel/pull/2980