Q&A1:安装composer依赖时报错:

总结:安装composer 依赖包时出现这个问题,原因在于配置文件中连接的数据库中没有将当前应用服务器加入到白名单中导致的;
事实上数据库配置改为内网时就不存在了;而且此时的依赖包也是安装成功的,而且已经进入到框架层进行检测了。
>> composer install

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Package phpoffice/phpexcel is abandoned, you should avoid using it. Use phpoffice/phpspreadsheet instead.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postInstall
> php artisan optimize

In Connection.php line 664:

  SQLSTATE[28000] [1045] ip not in whitelist or in blacklist, client ip is xx  
  .93.198.5 (SQL: select * from `permissions` where `permissions`.`deleted` =  
   0)                                                                          

In Connector.php line 67:

  SQLSTATE[28000] [1045] ip not in whitelist or in blacklist, client ip is xx  
  .93.198.5                                                                

Q&A2: 缺乏composer.lock文件

在laravel框架中存在两个配置文件,composer.json, composer.lock,前者是
控制vender三方库的来源,后者是控制调用的三方库的来源。
Loading composer repositories with package information
Updating dependencies (including require-dev)

  [Seld\JsonLint\ParsingException]                                                                    
  "https://composer.DOMAIN_NAME.com/repo/packagist/p/barryvdh/laravel-cors.json" does not contain valid  
   JSON                                                                                               
  Parse error on line 1:                                                                              

  ^                                                                                                   
  Expected one of: 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['                              

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] []...