Laravel Project Shows index of /
If you’re trying to reach your site and it shows an index of / thereafter listing all the directories in your root folder in a tree format rather than displaying the website, the problem is with your host file, and here is a fix for you. I had this issue while trying to set up a Laravel project on Laragon.

Solutions if you’re using Laragon
- Clean all auto virtual host (Menu > Apache > sites-enabled > Delete all [auto]) and reload Apache

Laravel Project Shows index of /. If the solution above did not work for you, the alternative solution is to switch to using nginx
How to switch to nginx
- Click on Menu > Preferences > Services & Ports
- Deselect Apache and select Nginx

All you need to know about Loans | Best Loans offers android BBN 2021 Best Laravel Guide | Code Best vue.js tutorials || Latest Practical Vue Js Tutorials Covid-19 Cross River News Update | Novel Coronavirus Dating Dell Drones earn fce obudu insurance iphones istagram JAMB laptops Laragon Laravel Tutorials Simple to Advance Latest Amazon Technologies || List of all Amazon Technologies Latest Educational News Latest Job Opportunities News | All Recruitment News latest news from Google | Browse Google latest info Latest Technology News || Trending Technologies Latest Waec News and Info Microsoft MS Word neco Netflix Nigeria Civil Defence Nigeria Customs Service Nigeria Examinations News npower nysc news scholarships syllabus Trailers Windows 10 Windows 11
See Also