xxxxxxxxxx
"config": {
"platform": {
"php": "7.0.7"
},
"preferred-install": "dist",
"optimize-autoloader": true
}
run composer install
xxxxxxxxxx
// Go to your composer.json file in your project root
// Then search for the below configuration. And change
// it to whatever version you need
Like this :
"php": "7.0.7"
or something like this :
"php": "^7.3|^8.0",
//Then run composer install
composer install
xxxxxxxxxx
$>which composer
/usr/local/bin/composer
$>php -d memory_limit=512M /usr/local/bin/composer update
xxxxxxxxxx
"config": {
"platform": {
"php": "7.0.7"
},
"preferred-install": "dist",
"optimize-autoloader": true
}
Best way to do this is to delete your composer.lock file, changing the platform > php version in composer.json and then
run composer install
xxxxxxxxxx
# Step 1: Open your terminal or command prompt.
# Step 2: Go to your Laravel project directory.
cd /path/to/your/laravel/project
# Step 3: Update Composer using the following command.
composer self-update
# Step 4: If there are any dependencies/packages that need updates, run:
composer update
# Step 5: Verify the updated version of Composer.
composer --version