bootstrap/cache cache file directory generated when the program is running Files in the storage subdirectory, these files are also files generated when the program is running .env local configuration file, this depends on the specific environment, so no version management is required
vendor and composer.lock This is a file generated by composer. This depends on the situation. Generally speaking, composer.lock needs to be uploaded, which is considered to unify the version of the external library used by the program. The vendor directory can be ignored, but if external network access is restricted, it can also be uploaded.
bootstrap/cache cache file directory generated when the program is running
Files in the storage subdirectory, these files are also files generated when the program is running
.env local configuration file, this depends on the specific environment, so no version management is required
vendor and composer.lock This is a file generated by composer. This depends on the situation. Generally speaking, composer.lock needs to be uploaded, which is considered to unify the version of the external library used by the program. The vendor directory can be ignored, but if external network access is restricted, it can also be uploaded.
Reference link: Laravel.gitignore