I'm learning Laravel framework, but I have a weird problem in the routing. For example when I access localhost/iMall it will only show list of files and folders, i should explicitly access localhost/iMall/public and when I access localhost/public/index.php it will got to localhost/index.php showing the index page of WAMP server. And adding any routes is not working for example: in app/http/routes.php i wrote this:
<?php
Route::get('/', function () {
return view('welcome');
});
Route::get('hi', function () {
return view('Hi'); // Hi.blade.php
});
But this is not working, the mod_rewrite is enabled and AllowOverride is set to all. I'm using WAMP 3.0.4 Any help?