From 704f37ff6e2bd83225f03585f7d5becd56f9bc86 Mon Sep 17 00:00:00 2001 From: kyledoesdev Date: Wed, 20 May 2026 19:54:46 -0400 Subject: [PATCH] chore: Make ide-helper:models execution conditional Ensures the `ide-helper:models` command only runs if the `barryvdh/laravel-ide-helper` package is installed. This prevents errors during `composer install --no-dev` or in environments where the package might be absent. --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 12a0004..bc62aac 100644 --- a/composer.json +++ b/composer.json @@ -56,7 +56,7 @@ "post-autoload-dump": [ "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", "@php artisan package:discover --ansi", - "@php artisan ide-helper:models --nowrite --no-interaction --ansi" + "@php -r \"file_exists('vendor/barryvdh/laravel-ide-helper') && passthru('php artisan ide-helper:models --nowrite --no-interaction --ansi');\"" ], "post-update-cmd": [ "@php artisan vendor:publish --tag=laravel-assets --ansi --force",