What problem does it solve?
This Skill prevents critical errors and data corruption by providing a safe, guided process for switching between local development and production environments in Laravel. It eliminates manual .env file edits and potential misconfigurations that can lead to costly mistakes.
Core Features & Use Cases
- Environment Analysis: Automatically detects the current environment configuration from your
.env file, identifying whether you're set for local development or production.
- Guided Switching: Provides step-by-step instructions and templates for correctly configuring your
.env for local development or verifying Railway environment variables for production deployment.
- Safety Warnings: Alerts you to dangerous mixed configurations (e.g., local
APP_ENV with a production DB_CONNECTION), preventing accidental access to live data.
- Use Case: You've been developing locally and now need to prepare for deployment to Railway. This Skill guides you through verifying your production environment variables and ensures your local
.env is correctly configured for continued development, preventing accidental production data access.
Quick Start
I need to switch my Laravel project from production settings to local development. Please guide me using the env-switch skill.