diff --git a/composer.json b/composer.json index 438f4487..cba69987 100644 --- a/composer.json +++ b/composer.json @@ -32,11 +32,11 @@ } }, "scripts": { - "post-autoload-dump": [ - "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", - "@php artisan package:discover --ansi" + "post-install-cmd": [ + "@php -r \"@unlink('bootstrap/cache/packages.php');\"" ], "post-update-cmd": [ + "@php -r \"@unlink('bootstrap/cache/packages.php');\"", "@php artisan vendor:publish --tag=laravel-assets --ansi --force" ], "post-root-package-install": [ @@ -44,6 +44,10 @@ ], "post-create-project-cmd": [ "@php artisan key:generate --ansi" + ], + "post-autoload-dump": [ + "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", + "@php artisan package:discover --ansi" ] }, "extra": {