Adding Valet missing path: ~/.composer/vendor/bin

Laravel valet is a wonderful environment to create new Laravel project without the need to download any localhost server like Wampp, Xampp, Ampps.

After downloading Homebrew (or just updating it to the last version), you need to install version 7 of PHP by writing :

brew install homebrew/php/php71

Right after that, you need to install Valet via the composer by this command:

composer global require laravel/valet

Now as said in the Laravel documentation you need to add

~/.composer/vendor/bin

to your system, and this can be done by:

  1. In the bash command line
  2. Navigate to main directory and then to etc like this: cd /etc/
  3. In etc folder can be found the paths file
  4. So write sudo nano paths, I wrote sudo because it request permissions in order to do changes to the paths file
  5. Finally add: ~/.composer/vendor/bin
  6. Save the file by clicking CTRl + x in your keyboard..

In my mac pro (Early 2015), I have macOS Sierra version 10.12.4, and here the paths file after making the changes:

Thanks for reading the post.
Good luck.

mhmd

Hello, I'm Mohammad Daka, software engineer who love coding. In my spare time I blogs about JavaScript,PHP, Chrome Extensions, helpful resources and tools, I'm also working on my own projects. Don't hesitate to contact me at my twitter account: @mohammad_daka :)

You may also like...

1 Response

  1. backupbot says:

    Laravel valet is a wonderful environment to create new Laravel project without the need to download any localhost server .website backup

Leave a Reply

Your email address will not be published. Required fields are marked *