瀏覽代碼

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.
pull/2805/head
Lake Robin 5 年之前
父節點
當前提交
67aa0dca06
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      Laravel.gitignore

+ 1
- 1
Laravel.gitignore 查看文件

@@ -1,4 +1,4 @@
vendor/
/vendor/
node_modules/
npm-debug.log
yarn-error.log

Loading…
取消
儲存