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

Laravel Multienv Laravel Package

allysonsilva/laravel-multienv

Laravel Multienv lets one Laravel installation run with multiple environment files, automatically selecting the right .env per domain or request. Ideal for multi-domain or multi-tenant apps sharing a single codebase, it keeps configuration isolated and manageable without duplicating the application.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Environment configuration strategy: Adopt a small, purpose-built package for managing multiple .env files across local, staging, production, and tenant-specific deployments instead of maintaining custom bootstrap code.
  • Deployment and config caching: v2.1.0 adds support for php artisan optimize and optimize:clear, making the package safer for standard production deployments that cache configuration. This reduces the risk of stale or incorrect environment values after deploy.
  • Build vs. buy: Favor this package when requirements are simple: multiple env files, environment-specific overrides, and standard Laravel deployment commands. Build custom only if you need secret-manager integration, dynamic tenant resolution, audit trails, or nonstandard boot ordering.
  • Roadmap gating: The new minimum Laravel version is 9.32. Teams on older Laravel 9.x releases must upgrade before adoption; teams already on 9.32+ can treat this as a low-risk minor upgrade.
  • Use cases: Multi-environment teams, local developer overrides, CI/CD pipelines, staging/production parity, and apps that need per-environment configuration without bespoke environment loaders. Not a replacement for secret storage, rotation, or compliance controls.

When to Consider This Package

  • Consider it when the application is on Laravel 9.32+, needs straightforward multi-environment .env handling, and wants compatibility with native Artisan commands including optimize and optimize:clear.
  • Consider it when the team wants to avoid maintaining a custom LoadEnvironmentVariables override or ad-hoc deployment scripts for env-file selection.
  • Consider it when config caching is part of the deployment process and per-environment values must remain correct after php artisan optimize.
  • Look elsewhere when the app is pinned below Laravel 9.32, requires runtime secret management/rotation/audit, has complex multi-tenant environment resolution, or already relies on platform-provided environment variables and cloud secret managers. In those cases, Laravel’s native environment handling or a dedicated secrets solution is a better fit.

How to Pitch It (Stakeholders)

  • For executives: This is a low-cost, low-risk package that simplifies per-environment configuration and now supports standard production config-caching commands. Adoption requires Laravel 9.32+ and normal upgrade discipline; it is not a secrets-management platform.
  • For engineering: v2.1.0 adds optimize and optimize:clear compatibility, aligning the package with standard Laravel deployment workflows. The minimum Laravel version is now 9.32, so older applications need an upgrade first. Adopt it for simple multi-env file management; avoid it for complex secret handling or tenant-specific runtime resolution. Validate the deployment pipeline and config-cache invalidation before rollout.
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.
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox