Laravel Homestead 12.1.0仍使用PHP 8.0无法创建Laravel 9项目
我正在尝试通过Homestead构建Laravel 9项目,但是作曲家失败了,因为
Laravel
vagrant box remove laravel/homestead
8.1
vagrant box add laravel/homestead
9
vagrant@homestead:~$ php -v
PHP 8.0.1 (cli) (built: Jan 13 2021 08:22:35) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.1, Copyright (c) Zend Technologies
with Zend OPcache v8.0.1, Copyright (c), by Zend Technologies
。
需要 这?
I am trying to build a laravel 9 project through homestead but composer is failing since Laravel 9 requires 8.1.^
I removed my homestead box
vagrant box remove laravel/homestead
then added it again
vagrant box add laravel/homestead
but When i check in CLI,
vagrant@homestead:~$ php -v
PHP 8.0.1 (cli) (built: Jan 13 2021 08:22:35) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.1, Copyright (c) Zend Technologies
with Zend OPcache v8.0.1, Copyright (c), by Zend Technologies
I have homestead 12.1.0
Any advice on how to fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找到了解决方案。这个问题不是在盒子上,而是与Vagrant/Homestead一起使用,因为我运行了一个较旧的版本。
我将机器上的Vagrant/Homestead更新为13.2.1,这解决了问题。
Found the solution. The issue was not with the box but instead with vagrant/homestead since I was running an older version.
I updated my vagrant/homestead on my machine to 13.2.1 and this fixed the problem.