check laravel version
php artisan --version
update laravel version global
FIRST METHOD :
===============
# uninstall the package
composer global remove laravel/installer
# reinstall
composer global require laravel/installer
SECOND METHOD :
================
Just upgraded from Laravel 7 to 8, and running
composer global require "laravel/installer:^4.0"
did the trick for me (i.e., without removeing first)
update php version in laravel
"config": {
"platform": {
"php": "7.0.7"
},
"preferred-install": "dist",
"optimize-autoloader": true
}
run composer install
laravel version global upgrade
composer global require "laravel/installer:^4.0"
laravel 7 upgrade
$>which composer
/usr/local/bin/composer
$>php -d memory_limit=512M /usr/local/bin/composer update
...
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us