Context: I have several projects online under one domain and would like to switch them to Laravel over time. These projects are stored in their own subfolders within the document root. Therefore the Laravel files (the folders app, config, database etc.) for each project are "public".
Today I came across an article in this context which advises to keep only the contents of the public folder in the document root and to keep the other folders outside the document root (https://laravel-news.com/subfolder-install). At first I found the approach plausible, but now I'm wondering if it's really necessary. If I want to follow the above approach and do the separation in my local development environment, I have a problem with the administration by git, because the project files are spread over two separate areas.
So my question: Is it necessary to keep the Laravel files out of the document root (except: 'public' folder)?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire