Skip to content

Commit

Permalink
Only ignore root vendor directory
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lakerobin authored Sep 12, 2018
1 parent 35441e9 commit 67aa0dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Laravel.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
vendor/
/vendor/
node_modules/
npm-debug.log
yarn-error.log
Expand Down

0 comments on commit 67aa0dc

Please sign in to comment.