The storage/ can be moved outside the web root directory to prevent unauthorised access to its contents via the web.
storage/ directory to the intended destination. For example:
mkdir -p /sp-storage
mv /var/www/html/storage /sp-storage
STORAGE_PATH environment variable:
STORAGE_PATH=/sp-storage
Article Number: 183
Author: Jul 18, 2024
Last Updated: Jul 18, 2024
Online URL: https://docs.supportpro.vn/article/moving-the-storage-directory-183.html