Composer问题集锦

1、报 [ErrorException] zlib_decode(): data error 错
解决办法:执行 composer self-update 即可

2、在执行迁移或者数据填充时发生「class not found」错误
解决办法:试着先执行 composer dump-autoload 命令后再进行一次。
3、提示以下类似的错误时

  Problem 1
    - The requested package graham-campbell/credentials ~1.0 is satisfiable by g
raham-campbell/credentials[1.0.x-dev] but these conflict with your requirements
or minimum-stability.

解决方法:在composer.json中添加以下

"minimum-stability": "dev",

你可能感兴趣的:(Composer,laravel框架)