How to change on Vagrant from php 7.2 to php 7.3?

  laravel, php

I try to install Laravel 8 to vagrant. The install process works without problem. But the homepage shows the following error:

Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.3.0". You are running in /home/vagrant/code/7time/vendor/composer/platform_check.php on line 24

When I check the version, it shows 7.3

[email protected]:~/code$ php -version
PHP (cli) (built: Oct 31 2020 16:59:59) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.24, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache, Copyright (c) 1999-2018, by Zend Technologies

I searched on google for solution, but no success.
I reinstalled php
I tried to install laravel via Laravel installer and via Composer

Can someone help to find out what is wrong?

Source: Laravel

Leave a Reply