Laravel Valet - This Site Can't Be Reached

Viewed 17142

I have successfully followed the Setup a Mac Dev Machine until this tutorial: https://laracasts.com/series/setup-a-mac-dev-machine-from-scratch/episodes/10?autoplay=true

The problem is that when I go to SITENAME.dev, nothing shows up. Instead, I get the following message:

This site can’t be reached

test2.dev refused to connect. Did you mean http://test2.de/? Search Google for test2 dev ERR_CONNECTION_REFUSED

I've tried this both for a laravel install (using the laravel installer) and a wordpress install. Neither one works.

Any idea why it is not working. I have followed the course step-by-step as well as the comments. For instance, I modified the .zshrc file as follows based on the course and comments:

export PATH=$HOME/bin:/usr/local/bin:$HOME/.composer/vendor/bin:$PATH

And, in case it is relevant, I am on Mac Sierra (freshly updated).

In short, where Jeffrey is able to get a home page of laravel, I get an error.

Any idea how to fix this?

Thanks.

7 Answers

Mac os mojave - version 10.14, cd in your-project-folder-name and run valet secure your-project-folder-name

Be sure you're over http://app.test and not https://app.test

Laravel Valet uses Not secure http as default.

By the way if you want to secure your app then use

valet secure YOURAPPNAME

Deleting the file (sudo rm /etc/resolver/dev) will clear this issue up.

IF valet is trying to open a HTTPS (SSL connection) type command line in your terminal

valet secure
Related