Fix laravel 41

To support Laravel 4.1 this change has to be made. But it will drop support for Laravel 4.0