Project Configurations
Nothing to say here, The Laravel standard configuration, except we'll make some changes.
Let's see our configuration structure roadmap in list of points:
#
Mongez Configuration PhilosophyIn simple words, we work in multiple levels of configurations, actually, 4 levels to be more preceise:
- Inline Configurations (A configuration per certain usage only).
- Module Configurations (Your overriden configuration for certain module).
- Project Configurations (In config directory).
- The Vendor Level (Default Configuration).
The previous list is written in the configuration precedence, which means the inline configuration will override any other configuration that match these configuration.
If none of the first three configuration is present, the vendor (default) configuration will be used instead.
More details in depth can be found in Configuration Philosophy.
#
Storage ConfigurationAs Laravel Symlink allows use to create a symlink to a more safer directories, we'll configure our application accordingly.
Make sure to add the symbolic link for public storage path for our storage directory.
In this case all uploaded files will be stored in storage/app/public
and your link will be https://sitename.com/public/storage
, for example
storage/app/public/my-image.webp
can be visited in https://sitename.com/public/storage/my-image.webp
path.