0

I am on linux, and I add the laravel command to my PATH by doing this: export PATH="$PATH:~/.composer/vendor/bin" then I can run things like: laravel new project to create a new a laravel project.

My problem is when I restart the terminal, and I cannot use it any more, until I re-add the laravel PATH.

Any idea why is that?

carlosbvz
  • 164
  • 1
  • 12

1 Answers1

0

export only lasts for the duration of your terminal session. To have it automatically run each time you open a terminal, you'll need to add it to your ~/.profile file (creating it if necessary).

See this answer for other details and solutions.

Community
  • 1
  • 1
xathien
  • 802
  • 7
  • 10