Laravel Community Tools by Tighten

Fabian Hagen

Joined: 9 years ago
Total tricks: 3
Last trick: 8 years ago

Submitted tricks

I was looking for a way to change the .env-values within a controller or from something else. I found nothing, so I created my own little method. It takes an array of new values. The array key must be the key from the .env. The script overwrites the old .env. Yet not perfect, but works for now. UPDATE: I am developing a package which will provide this functionality in a better way. The package will ship with some more features. UPDATE: Here is the Link to the Package: https://github.com/Brotzka/laravel-dotenv-editor. Give it a try ;) There will be more features in a few days.
Brotzka 9 years ago 32228
5.0
Like I said in my old post, I created a package, which makes it easy for you to implement some functionalities to edit/update/modify your .env-file. See more on GitHub: https://github.com/Brotzka/laravel-dotenv-editor. Tell me, if you have any suggestions to extend this package.
Brotzka 9 years ago 7200
I've developed a new package for translation handling. It works with Larvels default translation loader. You can export your translation files via artisan command to database. After translating all files you can simply reimport them from the database. The reimport creates all needed language folders and translation files for you. All you have to do is set the parameter "available_locales" in your config/app.php file. This way you can focus on one language in your dev environment. In production you export your default language, translate it and reimport it. All done with two artisan commands. See more under https://github.com/Brotzka/Laravel-Translation-Manager
Brotzka 8 years ago 6305