Ignoring the Vendor Folder In GIT
Hello guys.
I'm trying to understand the practice of ignoring the vendor folder in a GIT repo. It's not making sense to me because if I need to deploy my project, I would then need to run composer dump-autoload on the server the project is deployed too each time there is a new class, service provider..etc.
I just read about your suggestion on composer install. This is definitely correct as what I need to do is place composer.lock under version control as well as composer.json. Once I do that, composer install command will install the exact dependencies for my project after the post-receive hook is executed. Thanks for that.
Please or to participate in this conversation.