Nothing is more frustrating then when all you want to do is start coding and commands don’t work. Whether you are new to Laravel or like me reformat often forget how you resolved past problems. A common issue that affects Laravel developers is forgetting to place Comoser’s vendor pin directory in our $PATH. When following first-time setup installation instructions from laravel.com it instructs you to do the following.
Make sure to place Composer’s system-wide vendor bin directory in your
laravelexecutable can be located by your system. This directory exists in different locations based on your operating system; however, some common locations include:
-GNU / Linux Distributions:https://laravel.com/docs/8.x/installation
Instead, simply add the following to the end of your
~/.zshrc file. Once completed open up a new terminal instance or sourcing the
/.zshrc file that’s it!
You can check that everything is working by typing