I have set up my first Larevel application on WampServer on my local machine under the directory 'laravel', When I type localhost/laravel
it takes me to the file structure as shown below. I can only get to the homepage of the application when I type in localhost/laravel/public
.
Here is my routes.php
file:
Route::get('/', function () {
return view('welcome');
});
Route::auth();
Route::get('/home', 'HomeController@index');
How do I configure my application to make the welcome page the root? Am I missing something here? Surely there is an easier way to do this than having to edit the .htaccess?