Laravel PHP Command Not Found on Mac

open terminal and paste this line for open .bash_profile in Nano

nano ~/.bash_profile 

paste text below, save it, and exit nano

export PATH=~/.composer/vendor/bin":$PATH"

and again in terminal open .zshrc in Nano

nano ~/.zshrc 

and paste text below and save it

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

restart terminal