.gitignore for Laravel + Node + PHP

Quick presets

Selected (3)
LaravelNodePHP
Your selections never leave your browser. Generation happens entirely client-side.
Raw

38 patterns · 764 B

# Generated by DevZone Tools — https://devzone.tools/tools/gitignore-generator
# Templates: Node, PHP, Laravel
# 2026-04-20

# ---- Node ----
# Node
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
.pnpm-debug.log*
.npm
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
lerna-debug.log*
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
dist/
build/
.cache/
*.tsbuildinfo

# ---- PHP ----
# PHP
/vendor/
.env.backup
.env.production
Homestead.json
Homestead.yaml
auth.json
npm-debug.log
yarn-error.log
.phpunit.result.cache
.php-cs-fixer.cache
.php_cs.cache

# ---- Laravel ----
# Laravel
/public/hot
/public/storage
/storage/*.key
/bootstrap/cache/*
!/bootstrap/cache/.gitkeep