From 67aa0dca06ecfda4aa760003c92d551231d0fcb8 Mon Sep 17 00:00:00 2001 From: Lake Robin <42895793+lakerobin@users.noreply.github.com> Date: Wed, 12 Sep 2018 15:16:16 +0530 Subject: [PATCH] Only ignore root vendor directory In Laravel, we often use `artisan vendor:publish` to copy views, notifications etc from dependencies so that they can be customized. These views are created in /vendor/ directory. When using the current gitignore for Laravel, vendor is inserted like vendor/ which ignores all the directories named vendor anywhere in the source tree, including the customized views. The proposed file change tries to fix this problem by ensuring only the root vendor directory is ignored by git. --- Laravel.gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Laravel.gitignore b/Laravel.gitignore index 67e2146f..6552ddf8 100644 --- a/Laravel.gitignore +++ b/Laravel.gitignore @@ -1,4 +1,4 @@ -vendor/ +/vendor/ node_modules/ npm-debug.log yarn-error.log