public function index()
{
return redirect()->route('index');
}
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-laragon.jpg
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