Melodia
4 months ago
309
4
Laravel

My laravel command does not work after I restart my terminal

Posted 4 months ago by Melodia

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?

Please sign in or create an account to participate in this conversation.