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

rbajwa's avatar

Want to know issue with creating new laravel projects

Hi, I am absolute new to laravel and few days ago start to learn laravel.

I was trying to create new laravel project with this command :

"laravel new projectname"

but this command not working for me it shows error that "command not found" but when i try this below command that works fine

"composer create-project laravel/laravel newProject"

So, I just wand to know that why this is happening ??

0 likes
2 replies
Cronix's avatar

Did you install the installer globally so you can execute it from any dir?

composer global require laravel/installer

https://laravel.com/docs/5.8/installation

That said, I always just use composer to install it and not the laravel installer (which needs to also be kept up to date whereas composer create-project method doesn't)

2 likes

Please or to participate in this conversation.