G
GitIgnore.pro
Back to Templates

Laravel .gitignore Template

Laravel project template

5K downloads
4.5/5.0
Updated 2024-01
.gitignore
31 lines
/vendor/
node_modules/
npm-debug.log
yarn-error.log

# Laravel 4 specific
bootstrap/compiled.php
app/storage/

# Laravel 5 & Lumen specific
public/storage
public/hot

# Laravel 5 & Lumen specific with changed public path
public_html/storage
public_html/hot

storage/*.key
.env
Homestead.yaml
Homestead.json
/.vagrant
.phpunit.result.cache

/public/build
/storage/pail
.env.backup
.env.production
.phpactor.json
auth.json

How to Use This Template

  1. Copy the template content above
  2. Create a new file named .gitignore in your project root
  3. Paste the content into the file
  4. Customize the patterns for your specific project needs
  5. Commit the .gitignore file to your repository

Laravel & PHP 项目

下载 Laravel 模板

一键获得 storage、vendor、编译产物的忽略集合。