我正在使用 Laravel 5.6,并遇到了问题。当我在控制台中使用命令 "php artisan vendor:publish" 时,会出现以下错误:
[ERROR] Use of undefined constant STDIN - assumed 'STDIN'
Which provider or tag's files would you like to publish?
[0] Publish files from all providers and tags listed below
[1] Provider: Intervention\Image\ImageServiceProviderLaravel5
问题在于,这些消息会无限出现,直到我关闭控制台或者长时间后它才会结束该进程。我在谷歌上搜索了这个问题,但只找到stdin的问题,而那些遇到这个问题的人是在php脚本中直接调用artisan,而不是在命令行界面中调用。当我使用“php artisan migrate”时,同样会出现此问题。
composer show -i
输出? - Simon Rcomposer dump-autoload
。 - Tpojka