laravelcomposer-php

Laravel "valet install" not found


I am trying to set up Laravels Valet (Valet is a Laravel development environment for Mac). Everything works until it comes to the command "valet install". This command must be executed in terminal. But I got the error "command not found". Any ideas, why? Do I have to update my PATH or something else?

I switched to OS X a few days ago. Before that, I was a windows user. So I am a total newbie.


Solution

  • Yes, you need to make sure that ~/.composer/vendor/bin directory is in your system's PATH, you can check this by running:

    echo $PATH
    

    If you can't see it there, then you need to add this to your ~/.bash_profile:

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