phattarachai/worktree-prompt
A Laravel package that adds an interactive prompt for picking Git worktrees, so you can run Artisan commands against the right branch or parallel checkout without leaving your terminal.
lwt, which already handles Composer/npm reuse, .env copying, storage/build folders, database creation, migrations, and idempotent re-runs.lwt setup is directly useful when agents create their own worktrees (e.g. .claude/worktrees/), turning agent-created checkouts into runnable Laravel apps.--db=copy|empty) and --url reduce cross-branch database collisions and make migrations safer to test..env files and creating/dropping databases..env copying, storage/ and bootstrap/cache, public/build, public/storage, database creation, and migrations.lwt setup [path] if worktrees are created by other tools or agents and need to be made runnable safely and repeatably..env copying and database create/drop.For executives: This is a low-cost developer-productivity tool, not a production runtime dependency. It reduces setup toil and context switching, and makes parallel feature/hotfix work and AI-assisted development more practical by giving each branch its own runnable Laravel worktree and database. The main risks are tooling immaturity at v1.0.0 and local environment/security policy, so propose a small pilot with a pinned version.
For engineering: lwt turns git worktrees into runnable Laravel apps in one command: it reuses vendor/node_modules when lockfiles match, copies or links environment files, recreates storage/build artefacts, optionally provisions an isolated database, runs migrations, and cleans up safely by refusing dirty worktrees. It also supports worktrees created by other tools and AI agents. Trial it on a representative repo, confirm macOS/Linux and database assumptions, and document the .env/DB-admin policy before standardizing.
How can I help you explore Laravel packages today?