Laravel Valet 404 Error When Trying to View Site

2.7k views Asked by At

I just cloned a repo from GitHub for a Laravel site and running it locally on valet.

I'm getting a 404 - Not Found error when I try to visit tmye local dev site, however I have the root folder in one of my valet paths directories, and have also tried running valet link in the root directory.

My other sites running in the same directory are loading just fine.

I've also tried uninstalling and reinstalling valet.

Any other ideas? I've tried everything I could find when searching the error.

1

There are 1 answers

0
Casey On BEST ANSWER

I figured out the solution:

Laravel likes a "public_html" directory while valet likes "public", so I created a symbolic link folder named public and all is fine and dandy.

EDIT

This no longer seems to be an issue with valet, it recognizes both public and public_html directories