Skip to content

Commit 67aa0dc

Browse files
authored
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 <type>/vendor/<dependency> 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.
1 parent 35441e9 commit 67aa0dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Laravel.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
vendor/
1+
/vendor/
22
node_modules/
33
npm-debug.log
44
yarn-error.log

0 commit comments

Comments
 (0)