diff --git a/composer.json b/composer.json index 1268a2fec..d23eb25bc 100644 --- a/composer.json +++ b/composer.json @@ -23,5 +23,10 @@ "require": { "php": ">=7.1", "zoujingli/think-plugs-admin": "^1.0" + }, + "scripts": { + "post-autoload-dump": [ + "@php -r \"file_exists('.env.example') && !file_exists('.env') && copy('.env.example', '.env');\"" + ] } } \ No newline at end of file