I have laravel setup on xampp located in http://localhost/laravel but to test it I have to go to localhost/laravel/public How do I get rid of the
http://localhost/laravel
localhost/laravel/public
The better way is to use a virtual host and you may check this answer to setup a virtual host. Also you may use this solution but it's not recommended because it tells to move all files and folders from public to your app root folder.
public