How to use laravel php command in linux?


All you need is to place theĀ ~/.composer/vendor/bin directory in your PATH so that laravel command is executable. To do show, here is here the process:

Firstly, create

nano ~/.bash_profile 

And paste

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

Restart the terminal and it starts working.



  • Make sure you have installed composer in you system