diff --git a/composer.json b/composer.json index 65145212c..c5b3fbd68 100644 --- a/composer.json +++ b/composer.json @@ -63,30 +63,28 @@ } }, "scripts": { - "pre-install-cmd": [ - "rm -f compiled.php config.php routes.php services.json" + "post-root-package-install": [ + "php -r \"copy('.env.example', '.env');\"", + "php artisan key:generate" + ], + "post-create-project-cmd": [ + "php artisan key:generate" ], "post-install-cmd": [ + "php artisan clear-compiled", "php artisan optimize --force", "php artisan config:cache", "php artisan route:cache", "chmod -R 755 storage" ], "pre-update-cmd": [ - "rm -f compiled.php config.php routes.php services.json" + "php artisan clear-compiled" ], "post-update-cmd": [ "php artisan optimize --force", "php artisan config:cache", "php artisan route:cache", "chmod -R 755 storage" - ], - "post-create-project-cmd": [ - "php -r \"copy('.env.example', '.env');\"", - "php artisan key:generate" - ], - "test": [ - "phpunit" ] }, "config": {