Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tabors's avatar

Laravel Valet

Hello, how do I link a project which webroot is a subfolder? eg my_project/public

When I navigate to the public folder and call in there link or park , I get public.test but the site isn't working properly (shopware)

Is there a way to park a folder but assign a domainname manually ?

What is the correct way, please?

0 likes
8 replies
Sinnbeck's avatar

You run it from the root of the project. Valet should auto detect the public folder and use that

1 like
tabors's avatar

@Sinnbeck it should but it doesn't. Ive got it working by using php monitor, it lets you manually set a domain name. So I just linked teh publci folder with teh domain shopware.test this works

When i just link in teh root folder, this folder get the webroot not the public subfolder

Sinnbeck's avatar

@tabors sounds like something got broken in your set up. Maybe because you tried linking the public directory. But good if it works I suppose

tabors's avatar

@Sinnbeck It was broken out of teh box, I removed and reinstalled valet, it simply doent work when i just link teh root folder

Sinnbeck's avatar

@tabors any spaces or special characters (non English) in the folder name?

tabors's avatar

I just tested it again, this is interesting, I get that when running valet which :

Fatal error: Uncaught Error: Class "ValetDriver" not found in /Users/tabors/.config/valet/Drivers/SampleValetDriver.php:3

Looks like there is something not correctly installed?

tabors's avatar

OK now it seams to work :

{
    "tld": "test",
    "loopback": "127.0.0.1",
    "paths": [
        "/Users/tabors/.config/valet/Sites"
    ]
}

previously this path pointed directkly to the sites folder, whyever

Please or to participate in this conversation.