[英]Laravel 5.5. and PHP 7
I am updating to Laravel 5.5.我正在更新到 Laravel 5.5。 which uses PHP 7.0 version.它使用 PHP 7.0 版本。 I need to do setup on my local machine and on AWS as well.我需要在我的本地机器和 AWS 上进行设置。 First, locally WAMP server is installed which comes with PHP 7.0 ... I've selected it and when localhost is opened I get the message that the PHP version is 7.0.10 ... After changing version numbers for Laravel and PHP in composer.json, I did update and got this message:首先,安装了 PHP 7.0 附带的本地 WAMP 服务器......我选择了它,当打开 localhost 时,我收到 PHP 版本为 7.0.10 的消息......在 Composer 中更改 Laravel 和 PHP 的版本号后.json,我确实更新并收到了这条消息:
It is written that I still use 5.6.写到我还在用5.6。 How can I change this?我怎样才能改变这个?
According to @iainn Apache is using PHP 7, but the CLI (which Composer uses) is still using 5.6
hence, trying to uninstall and install composer again and select the correct php version (7.0) while setup.根据@iainn Apache 使用的是 PHP 7, but the CLI (which Composer uses) is still using 5.6
因此,尝试卸载并再次安装 composer 并在安装时选择正确的 php 版本 (7.0)。 Check below screenshot检查下面的屏幕截图
You're getting an error from composer.你从作曲家那里得到一个错误。 Try using 'composer install --ignore-platform-reqs' to setup your project folder.尝试使用“composer install --ignore-platform-reqs”来设置您的项目文件夹。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.