Level 102
Did you install it globally?
composer global require laravel/installer
4 likes
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am getting the error
zsh: command not found: laravel
I tried the other answers from the answered questions but they seem be old and do not work. I am on Mac with macOS Mojave.
I have the following in the ~/.zshrc files
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/harshamv/.composer/vendor/bin:$PATH"
export PATH="/usr/local/sbin:$PATH"
export PATH="$HOME/.composer/vendor/bin:$PATH"
Did you install it globally?
composer global require laravel/installer
Please or to participate in this conversation.