Running Laravel from the root location

After installation Laravel, the index file is started from the public folder. To run from root location follow below instructions:

  1. Rename server.php located in your Laravel root directory to index.php
  2. Copy the .htaccess file from /public directory and paste it to your Laravel root directory. I have tried it in Laravel 5.6.

Leave a Reply

Your email address will not be published. Required fields are marked *