Answer the question
In order to leave comments, you need to log in
How to update laravel if it says that it is not updated although the files are updated?
When you enter the "laravel -v" command, it says that version is 4.2.10 (Laravel Installer 4.2.10), while when creating a project in composer.json the following:
"require": {
"php": "^8.0.2",
" fruitcake/laravel-cors": "^2.0.5",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^9.0",
"laravel/sanctum": "^2.14",
"laravel/ tinker": "^2.7"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel/sail": "^1.0.1",
"mockery/mockery": "^ 1.4.4",
"nunomaduro/collision": "^6.1",
"phpunit/phpunit": "^9.5.10",
"spatie/laravel-ignition": "^1.0"
}
Plus, all the signs of it are version 9 (new road list, etc.)
Mb I'm just stupid, but why does it say that 4.2.10 is installed and if so, how can I upgrade to 9?
Answer the question
In order to leave comments, you need to log in
laravel -v
will show the version of the installer that is installed locally on the computer, and not specifically in the project.
To see the version of laravel in the project, you can call the command
php artisan -v
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question