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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community