I want to put my laravel project on Github, what files should I upload?
PHPz
PHPz 2017-05-02 09:28:36
0
2
552

Looking at other people’s warehouses, everyone’s file directories are different...
My project directory:

I hope the respondent can explain why some files do not need to be uploaded~~Thank you!

PHPz
PHPz

学习是最好的投资!

reply all(2)
阿神

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.

过去多啦不再A梦

Reference link: Laravel.gitignore

GitHub has a very detailed .gitignore
file list for dozens of projects and languages, you can find it at https://github.com/github/gitignore
.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template