Support the ongoing development of Laravel.io →
posted 1 year ago
Laravel
Last updated by @sergiob-dev 1 year ago.
0
moderator

The installer runs composer create project laravel/laravel (see: https://github.com/laravel/installer/blob/master/src/NewCommand.php#L92 )

And laravel/laravel copies the .env.example from the project to .env during the creation of the project. See: https://github.com/laravel/laravel/blob/9.x/composer.json#L43-L45

It is not possible to change that, maybe you could create a PR to the installer to accept a parameter for an .env file that copies that file to your new project.

On the other hand I suspect you need to change more values in the .env file for your project. Or you can copy a base .env that you save somewhere else.

sergiob-dev liked this reply

1

Sign in to participate in this thread!

Eventy

Your banner here too?

Sergio sergiob-dev Joined 30 Jan 2023

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.