I'm trying to install the scafold package in Laravel 5.1 but when I run the composer update it shows me an error.
C: \ xampp \ htdocs \ sites \ inventory> composer update Loading composer repositories with package information Updating dependencies (including require-dev)
[ErrorException] zlib_decode (): data error
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plu gins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-de pendencies] [-v | vv | vvv | --verbose] [-o | --optimize-autoloader] [--ignore-platform-reqs] [--p refer-stable] [--prefer-lowest] [packages1] ... [packagesN]
Then I ran the composer -vvv update command:
Downloading link $ 4721af190d059e42de5d516c963b992ca7e16 55071f2f84cfaf1fc7fcfa54b8e.json
[ErrorException] zlib_decode (): data error
Exception trace: () at phar: // C: /ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Util/RemoteFi les ystem.php: 218
I think it's an error in Laravel ... I have already updated the composer, I already checked if composer.phar is without utf8 - good and also if PHP zlib is enabled.
composer.json:
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.1.*",
"bestmomo/scafold": "0.0.1"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~4.0",
"phpspec/phpspec": "~2.1"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"estoque\": "app/"
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"pre-update-cmd": [
"php artisan clear-compiled"
],
"post-update-cmd": [
"php artisan optimize"
],
"post-root-package-install": [
"php -r \"copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
}
}