From 0ecfb171461f0eddf52fb863357f83f1a26d53eb Mon Sep 17 00:00:00 2001 From: James Brooks Date: Tue, 13 Jun 2017 23:12:10 +0100 Subject: [PATCH] Sync composer.json changes --- composer.json | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index bc2599c9..03c5879c 100644 --- a/composer.json +++ b/composer.json @@ -87,28 +87,24 @@ }, "scripts": { "post-root-package-install": [ - "php -r \"copy('.env.example', '.env');\"", - "php artisan key:generate" + "php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ], "post-create-project-cmd": [ "php artisan key:generate" ], "post-install-cmd": [ "Illuminate\\Foundation\\ComposerScripts::postInstall", - "php artisan optimize --force", - "php artisan config:cache", - "php artisan route:cache" + "php artisan optimize" ], "post-update-cmd": [ "Illuminate\\Foundation\\ComposerScripts::postUpdate", - "php artisan optimize --force", - "php artisan config:cache", - "php artisan route:cache" + "php artisan optimize" ] }, "config": { "preferred-install": "dist", - "sort-packages": true + "sort-packages": true, + "optimize-autoloader": true }, "extra": { "branch-alias": {