{name}.dev wont direct to public directory in laravel
-
I cloned a repo from gitlab into my laragon\www and accessed its {name}.dev.
it showed the laravel directory instead of the normal direct to the public folder, please how do i set that
-
@falconxxx : Can you show me the auto-generated Virtual Host file? it's in Menu > Apache > sites-enabled (or Menu > Nginx > sites-enabled if you use Nginx)
-
-
@falconxxx : It's the menu. I need the content
Click on an
auto.xxx.dev.conf
will show the content.
-
I don't know somehow i just tried opening it again and it worked, but what if i come across such again whats the next debug step?
-
@falconxxx :
I guess at the first run, Laragon generated the Virtual Host when thepublic
dir was not available.
Laragon has auto fixed function for auto generated virtual hosts. It detected that the DocumentRoot should be thepublic
dir so it updated the Virtual Host file next run.Note: Therefore you don't need to debug. However, if you need to, just check DocumentRoot value in the correspond Virtual Host file.