Damp

Migrate from Laravel Herd

Switch from Herd to DAMP in minutes

Switch from Laravel Herd to DAMP and get DevContainers, HTTPS, and service isolation for your existing projects.

Migration Process

Stop Herd Services

Stop Herd to free ports 80 and 443:

  1. Open Laravel Herd
  2. Click "Stop All Services"
  3. (Optional) Quit Herd completely

Open DAMP

Launch DAMP and click "Add Site" button.

Select "Existing Project"

Choose the Existing Project option.

Configure Site

Fill in the details:

FieldValueExample
NameYour site namemy-laravel-app
PathYour project folderC:\Herd\my-laravel-app
PHP VersionMatch your current version8.3

Install Services

After site creation, install services your project uses:

  • MySQL - If using database
  • Redis - If using caching/queues
  • Mailpit - For email testing

Go to Services page → Click "Install" for each service needed.

Update .env File

Open your project in VS Code DevContainer and update .env:

# Old Herd config
DB_HOST=127.0.0.1

# New DAMP config
DB_HOST=damp-mysql

# Redis (if using)
REDIS_HOST=damp-redis

# Mail (if using)
MAIL_HOST=damp-mailpit
MAIL_PORT=1025

Test Your Site

  1. Open in VS Code: Click "Open in VS Code" in DAMP
  2. Reopen in Container when prompted
  3. Browse to https://yoursite.local
  4. Install SSL certificate if needed

What DAMP Adds

DAMP creates these files in your project:

your-laravel-app/
├── .devcontainer/          ← Added by DAMP
│   ├── devcontainer.json
│   ├── Dockerfile
│   ├── php.ini
│   └── xdebug.ini
├── .vscode/                ← Added by DAMP
│   ├── launch.json
│   └── settings.json
└── [Your existing Laravel files remain unchanged]

Git Ignore

These folders are already in Laravel's .gitignore - team members can use their own setup!

Key Differences

Service Access

Herd:

DB_HOST=127.0.0.1
DB_PORT=3306

DAMP:

DB_HOST=damp-mysql  # Container name
DB_PORT=3306

Domain Access

Herd:

http://my-laravel-app.test

DAMP:

https://my-laravel-app.local  # HTTPS by default!

Artisan Commands

Herd: Run directly on host

php artisan migrate

DAMP: Run in DevContainer terminal

# Inside VS Code DevContainer
php artisan migrate

Troubleshooting


Run Both Temporarily

You can run Herd and DAMP simultaneously on different ports to test migration before fully switching!