In your .bashrc Or .zshrc depends on your terminal
add this line
export PATH="$PATH:~/.composer/vendor/bin"
Then reload the source
source ~/.bashrc
That should do it.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm now trying the first method in the quickstart documentation, that is, via Laravel Installer, but it says to "Make sure to place the ~/.composer/vendor/bin directory in your PATH so the laravel executable is found when you run the laravel command in your terminal." so my question is, how do I do that? This may be a simple question but I'm really frustrated and would appreciate any help.
Please or to participate in this conversation.