Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
configure-local-environment
configure-local-environment
alizharb/agent-skills
claude-code
herd
local-environment
mailpit
smtp
ssl
database-migrations
domain-mapping

Use when setting up site domain mapping, configuring Mailpit SMTP credentials, and switching PHP versions locally using Laravel Herd.

Install
php artisan boost:add-skill alizharb/agent-skills

Save this content to: .claude/skills/configure-local-environment/SKILL.md

# Configure Local Environment

## When To Use

Use this skill when installing a new project locally, setting up isolated local test databases, or configuring mail traps.

## Workflow

1. **Herd Link**: Run `herd link` inside the project root to map it to a `.test` domain.
2. **Mail Traps**: Configure `.env` to redirect outgoing emails to local port `1025` using SMTP.
3. **Database Scaffolding**: Setup an empty local SQLite or Postgres database and run `php artisan migrate --seed`.
4. **Secure Local SSL**: Run `herd secure` to enable HTTPS locally.

## Examples

### Good Example

```bash
# ✅ Set up HTTPS and test domains locally in seconds
cd /Users/user/Sites/my-project
herd link my-app
herd secure my-app
# Now accessible securely at https://my-app.test
```

### Bad Example

```bash
# ❌ Hardcoding server blocks manually inside /etc/hosts and /etc/nginx/nginx.conf
# This is brittle, non-standardized, and difficult for other team members to reproduce.
```
---

Configure Local Environment

When To Use

Use this skill when installing a new project locally, setting up isolated local test databases, or configuring mail traps.

Workflow

  1. Herd Link: Run herd link inside the project root to map it to a .test domain.
  2. Mail Traps: Configure .env to redirect outgoing emails to local port 1025 using SMTP.
  3. Database Scaffolding: Setup an empty local SQLite or Postgres database and run php artisan migrate --seed.
  4. Secure Local SSL: Run herd secure to enable HTTPS locally.

Examples

Good Example

# ✅ Set up HTTPS and test domains locally in seconds
cd /Users/user/Sites/my-project
herd link my-app
herd secure my-app
# Now accessible securely at https://my-app.test

Bad Example

# ❌ Hardcoding server blocks manually inside /etc/hosts and /etc/nginx/nginx.conf
# This is brittle, non-standardized, and difficult for other team members to reproduce.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core
nodisrupt/laravel-agent
sierratecnologia/media-manager