S
S
SpaceBox7772022-02-19 14:16:04
Composer
SpaceBox777, 2022-02-19 14:16:04

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

1 answer(s)
A
Andrew Hecc, 2022-02-19
@SpaceBox777

laravel -vwill 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
6210d4cac5901976844381.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question