@melodia is your default shell the zsh?
What if you run:
source ~/.zshrc
Can you use laravel command after that?
Here is how to set it to default if it is not already
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I just followed the laravel installation process and got everything to work fine, however, after restarting my terminal(oh-my-zsh), if I try to run laravel new projectname, I see this error:
zsh: command not found: laravel
However, if I run composer global show, I see valet and installer are indeed installed:
laravel/installer v2.2.1 Laravel application installer.
laravel/valet v2.5.2 A more enjoyable local development experience for Mac.
I also tried adding this:
echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.zshrc
and I can see it if I visit my zshrc file
How can I indeed have laravel installer globally and run the laravel commands at any time?
@melodia is your default shell the zsh?
What if you run:
source ~/.zshrc
Can you use laravel command after that?
Here is how to set it to default if it is not already
Please or to participate in this conversation.