Brotzka / laravel-dotenv-editor

A Laravel package for editing the .env file dynamically.
366 stars 80 forks source link

Keep original file spaces #8

Open antonkomarev opened 8 years ago

antonkomarev commented 8 years ago

If .env file has empty lines between key-value pairs:

APP_ENV=local

APP_KEY=

APP_DEBUG=true

APP_LOG_LEVEL=debug

After edit it will look like:

APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_LOG_LEVEL=debug

It will be great if empty lines will be saved.

Brotzka commented 8 years ago

Hey,

I trie to implement this feature in the next release.

twf-nikhila commented 6 years ago

@Brotzka ,

Want to use this package, but not using because of few issues like removing line break and comments are considered as key. This shouldn't happen.

https://github.com/Brotzka/laravel-dotenv-editor/issues/37

Any update on fixing it?

GeoSot commented 5 years ago

@twf-nikhila

please give a try on this