temporally patched for laravel 5