Laravel 5在xampp localhost上显示目录结构而不是index.php

http://localhost/laravel_test/

Instead of routing to the index.php above URL is only printing Index (Directory Structure) of /laravel_test.

I am able access the index page with following:

http://localhost/laravel_test/public/index.php

I tried modifying the .htacess file by adding following line inside the public directory of laravel_test still no change:

DirectoryIndex index.php

This is an old post, but in case this helps anyone, I was facing this problem because my httpd-vhosts.conf file was pointing to C:/xampp/htdocs/MySite instead of C:/xampp/htdocs/MySite/public. This is stupid mistake but you know everyone does this kind of mistakes once in a while.