eduardoaraujo01/nova-env
A Laravel Nova tool for managing environment variables directly from the admin panel. View, edit, and organize .env entries without server access, making configuration changes simpler and safer for authorized Nova users.
What it is (inferred): A Laravel Nova tool named nova-env — a privileged admin UI for reading/editing the application's .env file from inside the Nova dashboard. This is a common convenience category (env editors for Nova) with a well-known set of trade-offs.
Architecture fit
Tool class, registered in NovaServiceProvider::tools(), Vue front end, routes behind Nova's auth middleware). Low architectural surface area and easy to reason about.Integration feasibility
Technical risk
.env. Default Nova access is coarse; there is no evidence of per-key permissions, read-only mode, masking, or value-level audit..env do not take effect while config:cache is active, and queue workers/horizon hold stale config. Without an explicit recache + worker-restart hook, the UI will silently lie about the running configuration.# comments, and file permission/ownership changes can corrupt .env — and a corrupt .env prevents the app (and therefore the UI) from booting.Key questions to answer before adoption
.env before writing, and can a change be reverted from the UI?config:cache, Octane, and queue worker restarts after a save?Stack fit
NovaServiceProvider::tools()..env is genuinely the source of truth and deployments are manual or simple. That is exactly where the convenience payoff is highest.Migration path
.env before enabling, and add .env.bak rotation to the runbook..env is authoritative. If configuration is injected by CI/CD, Kubernetes secrets, Ansible, or a secrets manager (Vault, AWS Secrets Manager, Doppler), the UI creates a shadow source of truth that the next deploy silently overwrites — in that case, do not adopt.Compatibility
composer.json against the installed Nova major; Nova 5 changed tool scaffolding and asset compilation.env() at runtime in ways that break under cached config.Sequencing
viewNovaEnv / manageNovaEnv Gate restricted to a named super-admin role.config:clear && config:cache, queue restart, and a diff log to an append-only channel.APP_ENV=production unless an explicit override flag is set)..env is broken, use SSH" recovery path.Maintenance
Support
Scaling
.env edits apply to one node only. In autoscaled, containerized, or multi-region deployments the UI becomes actively misleading and should be disabled entirely.Failure modes
.env → application boot failure; recovery requires SSH/filesystem access, i.e., the fix lives outside the tool that caused the break (chicken-and-egg).Ramp-up
Recommendation
How can I help you explore Laravel packages today?