Laravel Packages

Laravel Dot Env Generator

Published
Laravel Dot Env Generator image

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 L. Barnes photo

Eric is the creator of Laravel News and has been covering Laravel since 2012.

Sponsored

laravelcloud logo
Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Visit Laravel Cloud

The latest

View all →
Compoships: Eloquent Relationships on Multiple Columns image

Compoships: Eloquent Relationships on Multiple Columns

Read article
MKSine: A Filament CMS with Plugins, Themes, and Blocks image

MKSine: A Filament CMS with Plugins, Themes, and Blocks

Read article
Cancel In-Flight Form Submissions in Inertia.js v3.7 image

Cancel In-Flight Form Submissions in Inertia.js v3.7

Read article
Laravel Starter Kits Now Ship with Vite+ image

Laravel Starter Kits Now Ship with Vite+

Read article
Pessimistic Locking in Laravel Eloquent with refreshForUpdate() image

Pessimistic Locking in Laravel Eloquent with refreshForUpdate()

Read article
Mask Query Bindings in Laravel Exception Messages image

Mask Query Bindings in Laravel Exception Messages

Read article