bngaard's avatar

Valet not working - Opening a google when using .test

Hi, I am new to Laravel and PHP in general. I just completed the intro-videos on Laravel 6, and having issues with Valet.

I previously had MAMP/MAMP PRO installed, but its not uninstalled as I followed the instructions and installed PHP and MySQL via Homebrew as per instruction video.

I also installed Valet, and followed the instructions, but for some reason it is not working. When I enter my projects name "bngaard.test" it redirects to a google search instead of opening the splash screen.

I checked valet path which is: /Users/christoffer/bngaard <-- This is this the correct folder for project /Users/christoffer/code <-- this is created following the video instruction

None of it is working - any ideas as to what is wrong?

0 likes
2 replies
Amaury's avatar

When using valet, you can park or link to serve sites:

Use valet park if you want register a current working directory as a path that Valet should search for sites. It means all sites (directory) within this working directory will be served.

Use valet link if you want to serve a single site in a directory.

I think that you should:

use valet link within /Users/christoffer/bngaard

OR

move your /Users/christoffer/bngaard to /Users/christoffer/code/bngaard

See https://laravel.com/docs/6.x/valet#serving-sites

jeff.held's avatar

Hello,

Valet link is not working on the PHP framework that not based on the laravel

Please or to participate in this conversation.