Workaround for https://github.com/laravel/framework/issues/5376