Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

MuhammadMaaz's avatar

laravel is not recognized as external or internal command

i'm trying to upgrade my version from 5.6 to 5.7,running command

laravel new dp5.7

but when i run this command it says the above mentioned thing.kindly help me about that,i ruined my a month work in early days due to that issue.

0 likes
5 replies
jlrdw's avatar

Are you wanting a new installation or update.

composer update will update the framework not laravel.

You can see from the website compare tool if there's anything you need to manually update in laravel.

Usually within the same version updating the framework is all that's needed, but does not hurt to check.

jlrdw's avatar

Okay just do as explained above it should update.

MuhammadMaaz's avatar

i ran composer command in command prompt and it's working.but laravel command is not working.

jlrdw's avatar

Laravel "command" has nothing to do with:

composer update

Have you ran composer global require laravel/installer

Please read the documentation again before you run any more commands.

Please or to participate in this conversation.