laravel升级到7.x投掷作曲家的点火包中的错误
目前,我正在尝试将Laravel应用程序从6.x升级到7.x,但是在安装了所需的软件包“立面/点火”后,我收到了以下错误:
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
软件包版本为^2.5
,现在我找到了解决方案,我会在这里发布。
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:
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题是我没有清除缓存。因此,我建议大家更新任何清除您的缓存,视图,配置缓存等内容。清除缓存后,更新成功。
如果您无法运行工匠命令清除缓存,只需删除
bootstrap/cache/
Directory下的所有文件(除了.gitignore)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)