How to use laravel php command in linux?

Standard

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.

 

REMINDER.

  • Make sure you have installed composer in you system
Advertisements