我是laravel的新手,我正在尝试更新作曲家,它已更新,但是我发现了一些消息,但我听不懂!! 关于“发现的包裹”
**
C:\xampp\htdocs\FinalPoject>composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
- Updating fideloper/proxy (4.0.0 => 4.1.0): Downloading (100%)
Writing lock file
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Discovered Package: [32marrilot/laravel-widgets[39m
Discovered Package: [32mbeyondcode/laravel-dump-server[39m
Discovered Package: [32mfideloper/proxy[39m
Discovered Package: [32mintervention/image[39m
Discovered Package: [32mlarapack/voyager-hooks[39m
Discovered Package: [32mlaravel/nexmo-notification-channel[39m
Discovered Package: [32mlaravel/slack-notification-channel[39m
Discovered Package: [32mlaravel/tinker[39m
Discovered Package: [32mnesbot/carbon[39m
Discovered Package: [32mnunomaduro/collision[39m
Discovered Package: [32mtcg/voyager[39m
[32mPackage manifest generated successfully.[39m
**
答案 0 :(得分:1)
如果您查看composer.json文件,可能会找到以下脚本:
"scripts": {
...
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover"
]
}
此命令php artisan package:discover
可帮助laravel在运行composer update
时发现任何新的受支持的库或软件包
如果您不想这样做,只需从composer.json文件中删除该脚本。但是,我不明白您为什么要这么做。
生产服务器上的其他信息,从不运行composer update
,始终运行composer install
,这样一来,它将从composer.lock
文件中提取软件包,仅安装这些库,从而避免了以下风险:更新某些库并遇到兼容性问题。
我希望对您有帮助