laravel 安装debugbar 时 第一步使用下面这条命令引入debug的时候出现下方错误,说明你需要进行指定版本,解决方法看最下方:
composer require barryvdh/laravel-debugbar
Problem 1
- Conclusion: don't install barryvdh/laravel-debugbar v3.1.5
- Conclusion: don't install barryvdh/laravel-debugbar v3.1.4
- Conclusion: don't install barryvdh/laravel-debugbar v3.1.3
- Conclusion: don't install barryvdh/laravel-debugbar v3.1.2
- Conclusion: don't install barryvdh/laravel-debugbar v3.1.1
- Conclusion: remove laravel/framework v5.4.36
- Installation request for barryvdh/laravel-debugbar ^3.1 -> satisfiable by
barryvdh/laravel-debugbar[v3.1.0, v3.1.1, v3.1.2, v3.1.3, v3.1.4, v3.1.5].
- Conclusion: don't install laravel/framework v5.4.36
- barryvdh/laravel-debugbar v3.1.0 requires illuminate/session 5.5.x -> sati
sfiable by illuminate/session[v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33
, v5.5.34, v5.5.35, v5.5.36, v5.5.37, v5.5.39, v5.5.40].
- don't install illuminate/session v5.5.0|don't install laravel/framework v5
.4.36
- don't install illuminate/session v5.5.16|don't install laravel/framework v
5.4.36
- don't install illuminate/session v5.5.17|don't install laravel/framework v
5.4.36
- don't install illuminate/session v5.5.2|don't install laravel/framework v5
.4.36
- don't install illuminate/session v5.5.28|don't install laravel/framework v
5.4.36
- don't install illuminate/session v5.5.33|don't install laravel/framework v
5.4.36
- don't install illuminate/session v5.5.34|don't install laravel/framework v
5.4.36
- don't install illuminate/session v5.5.35|don't install laravel/framework v
出现以上这种情况你可以指定版本 我此时使用的是laravel5.4的版本
运行命令:
composer require barryvdh/laravel-debugbar:2.4.0