zsh: command not found laravel

I think ZSH won't expand the ~ on PATH. Try this instead:

export PATH="$HOME/.config/composer/vendor/bin:$PATH"

Try to do this:

export PATH="$HOME/.config/composer/vendor/bin:$PATH"


As a follow up to Chris' answer,

The command export PATH="$HOME/.composer/vendor/bin:$PATH" will work, but only for your current terminal session.

If you would like the path to always be available when zsh launches, add PATH="$HOME/.composer/vendor/bin:$PATH" to the bottom of your ~/.zshrc file. Run the zsh command or restart your terminal and laravel will be available in every session you start.