syamsoul/laravel-set-env
Programmatically set, update, and read Laravel .env variables with a simple facade and CLI. Supports comments, precise placement, and multiple env files (.env, .env.example). Includes production safety checks for secure environment configuration management.
Laravel 13 Compatibility
$comments parameter in set method (to add comment/remarks)$afterKey parameter in set method (to add/update key after a specific key)Changes:
get methodexample:
php artisan souldoit:set-env APP_KEY=12334566 --force
First release
How can I help you explore Laravel packages today?