Laravel Remove public from URL in laravel How to do that?


Follow these steps to remove public from the url

  1. Copy .htaccess file from /public directory to Laravel/project root folder.
  2. Rename the server.php in the Laravel/project root folder to index.php.

Cheers you will be good now.

Please Note: It is tested on Laravel 4.2, Laravel 5.1, Laravel 5.2, Laravel 5.3.

I think this is the easiest way to remove public from the url.