diff --git a/.env.example b/.env.example new file mode 100644 index 00000000..f032cc7f --- /dev/null +++ b/.env.example @@ -0,0 +1,2 @@ +# DB_USERNAME=foo +# DB_PASSWORD=bar \ No newline at end of file diff --git a/composer.json b/composer.json index ca99db8e..b045ba4d 100644 --- a/composer.json +++ b/composer.json @@ -37,5 +37,10 @@ "Stancl\\Tenancy\\TenancyServiceProvider" ] } + }, + "scripts": { + "post-root-package-install": [ + "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" + ] } }