diff --git a/composer.json b/composer.json index 53668d48..81c5ebf7 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,12 @@ ] }, "scripts": { - "post-update-cmd": "php artisan optimize" + "pre-update-cmd": [ + "php artisan clear-compiled" + ], + "post-update-cmd": [ + "php artisan optimize" + ] }, "config": { "preferred-install": "dist"