Local files are not stored in the git system, but non-local files must be stored in the git system. Therefore, non-local configuration files mainly store common configurations that are used in both development systems and production environments, while local configuration files write configurations corresponding to different environments. For example, the username and password for your database connection may be different in your development environment and production environment. Configuration information like this should not be placed in main.php, but should be placed in main. -local.php, so that the production environment and development environment have different configurations to work properly.
Local files are not stored in the git system, but non-local files must be stored in the git system. Therefore, non-local configuration files mainly store common configurations that are used in both development systems and production environments, while local configuration files write configurations corresponding to different environments. For example, the username and password for your database connection may be different in your development environment and production environment. Configuration information like this should not be placed in main.php, but should be placed in main. -local.php, so that the production environment and development environment have different configurations to work properly.