Fix for laravel 4.1 support