Answer the question
In order to leave comments, you need to log in
How to add vendor folder to .gitignore?
composer require tightenco/collect
This command not only installs the dependency in the current project, but also automatically adds it to the require section of the composer.json file. This installation is local (there is no word global in the command), that is, the package is installed exactly in the current project. With this approach, dependencies are placed in the vendor folder, located at the root of the project. Don't forget to add this folder to .gitignore as the libraries are not part of your repository and are added as needed after cloning. The require section now looks something like this:
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question