未验证 提交 67aa0dca 编写于 作者: L Lake Robin 提交者: GitHub

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.
上级 35441e97
vendor/ /vendor/
node_modules/ node_modules/
npm-debug.log npm-debug.log
yarn-error.log yarn-error.log
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册