Sep.01
Hide public url from laravel project
Laravel will run <domain-name>/public folder but we can remove this public path from our site with
- Rename
server.php
in your Laravel root folder toindex.php
- Copy the
.htaccess
file from/public
directory to your Laravel root folder.
It will run site in <domain-name> with out /public but some assets js, css will not work properly we need little bit htacess changes.
these changes are :