为什么我用PhpStorm 打开laravel 的 项目 提示不一样
这是我安装的6.X 版本的 敲Route 少了箭头的提示
这是最新的版的
有人知道什么问题吗?
而且 6.X 版本
执行 php
composer require barryvdh/laravel-ide-helper
报错
Your requirements could not be resolved to an installable set of packages.
Problem 1
- barryvdh/laravel-ide-helper[dev-master, v2.9.0] require illuminate/console ^8 -> found illuminate/console[v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
- barryvdh/laravel-ide-helper 2.9.x-dev is an alias of barryvdh/laravel-ide-helper dev-master and thus requires it to be installed too.
- Root composer.json requires barryvdh/laravel-ide-helper ^2.9 -> satisfiable by barryvdh/laravel-ide-helper[v2.9.0, 2.9.x-dev (alias of dev-master)].
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
有人遇到个这样的问题吗?如何解决
错误已经提示了 你安装的是
barryvdh/laravel-ide-helper#v2.9.0
但是他依赖的
illuminate/console^8
没安装,因为illuminate/console^8
是laravel8
的扩展包你需要安装低版本的
barryvdh/laravel-ide-helper
比如: barryvdh/laravel-ide-helper#v2.8.2
(注意下
扩展包
的依赖包
版本就行了)