I have an app made in Laravel only to consume in REST but how do I do it so that there are not public files and sensitive routes like / storage or composer.json until .env? What good practices do you recommend, if .htaccess is a good idea or not, and also how to remove public from the route?
I am learning about servers and deploys, I listen to tips about all security.
PS: Use Elastic beanstalk for deploy