简体   繁体   English

Laravel 升级到 7.x 引发作曲家点火错误 package

[英]Laravel upgrade to 7.x throwing composer error in ignition package

Currently I was trying to upgrade a laravel app from 6.x to 7.x, but after installing the required package 'facade/ignition' I got the following error:目前我正在尝试将 laravel 应用程序从 6.x 升级到 7.x,但在安装所需的 package 'facade/ignition' 后,我收到以下错误:

Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

In QueryRecorder.php line 22:

  Argument 2 passed to Facade\Ignition\QueryRecorder\QueryRecorder::__construct() must be of the type bool, null given
  , called in /var/www/html/vendor/facade/ignition/src/IgnitionServiceProvider.php on line 386


Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

The package version was ^2.5 , now that I found the solution I'll post it here. package 版本是^2.5 ,现在我找到了解决方案,我会把它贴在这里。

The issue is that I didn't clear the cache.问题是我没有清除缓存。 So I recommend you guys before updating anything clear your cache, views, config cache, etc. After clearing the cache the update succeeded.所以我建议你们在更新任何内容之前清除缓存、视图、配置缓存等。清除缓存后更新成功。

If you can't run the artisan command to clear the cache, just remove all the files under the bootstrap/cache/ directory (everything but.gitignore)如果无法运行artisan命令清空缓存,只需将bootstrap/cache/目录下的文件全部移除(除了.gitignore之外的所有文件)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM