Search code examples
laravelmacoslaravel-valet

Valet not parking domains


I have a list of projects I want to server thru Laravel Valet:

  • ~/Projects/site1.test
  • ~/Projects/site2.test
  • ~/Projects/site3.test

I ran cd ~Projects/site1.test && valet park but when I do ping site1.test I get Request timeout for icmp_seq 0.

When I do valet open within ~/Projects/site1.test I am sent to site1.test.test which is wrong and I get a 404 error.

I still have 192.168.10.10 site1.test in my hosts file for when I'm running Homestead and it works fine with vagrant.

What am I doing wrong with Valet?


Solution

  • 1) I suggest you do a valet forgot in the ~Projects/site1.test directory and run valet park in ~/Projects

    2) Don't name your directories like dirname.test, if you just create folders inside of /Projects you will be fine. For example: /Projects/testproject will be http://testproject.test

    https://laravel.com/docs/5.6/valet#the-park-command