Laravel Dot Env Generator
Published on by Eric L. Barnes
laravel-dot-env-gen is a Laravel package to automatically generate and regenerate your .env
file.
To give an example of how this could be beneficial lets pretend we are cloning an existing Laravel application and we are unsure of all the environmental variables that need to be defined.
By running php artisan env:gen
the package will automatically scan your code base and create a new file .env.gen
which you can then rename and fill out the needed fields for your environment. It will also report any env variables that are defined but are not used in the source code.
Eric is the creator of Laravel News and has been covering Laravel since 2012.