From bfce3c82ec67d620a3e810e6716a1f55fd377cae Mon Sep 17 00:00:00 2001 From: ro Date: Tue, 22 Apr 2025 13:39:14 -0600 Subject: [PATCH] create env after install the creation of base .env file that stores global variables for the app need to be automated, so it's created after composer install automatically instead of issueing and additional command --- composer.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 1168773..6e15bea 100644 --- a/composer.json +++ b/composer.json @@ -71,7 +71,11 @@ ], "post-create-project-cmd": [ "@php artisan key:generate --ansi" - ] + ], + "post-install-cmd": [ + "php -r \"copy('.env.example', '.env');\"", + "php artisan key:generate" + ] }, "extra": { "laravel": {