使用队列,加载依赖包 Composer 报错 ?
问题一:执行队列监听,不出现任何东西,发帖成功了也不显示任何东西?
php artisan queue:listen
问题二 :加载 Horizon 依赖包时出现问题。
composer require "laravel/horizon:~1.0"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/horizon v1.2.3 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- laravel/horizon v1.2.2 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- laravel/horizon v1.2.1 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- laravel/horizon v1.2.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- laravel/horizon v1.1.1 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- laravel/horizon v1.0.9 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- laravel/horizon v1.0.8 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- laravel/horizon v1.0.7 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- laravel/horizon v1.0.6 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- laravel/horizon v1.0.5 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- laravel/horizon v1.0.4 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- laravel/horizon v1.0.3 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- laravel/horizon v1.0.2 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- laravel/horizon v1.0.1 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- laravel/horizon v1.0.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- Installation request for laravel/horizon ~1.0 -> satisfiable by laravel/horizon[v1.0.0, v1.0.1, v1.0.2, v1.0.3, v1.0.4, v1.0.5, v1.0.6, v1.0.7, v1.0.8, v1.0.9, v1.1.0, v1.1.1, v1.2.0, v1.2.1, v1.2.2, v1.2.3].
Installation failed, reverting ./composer.json to its original content.
求解 大神们。。。

关于 LearnKu
@Cockroack必死 你所有需要 composer 加载依赖包的地方都去虚拟机里面操作,因为虚拟机环境都有了,不需要配,在你的电脑环境下的话会报 pcntl 扩展包没有,你用的是教程的homestead?
第一步进入你之前安装的homestead目录打开虚拟机:
第二步进入虚拟机:
然后切到你的项目下,再加载composer依赖