diff --git a/src/Console/GeneratorCommand.php b/src/Console/GeneratorCommand.php index 40e7b15..20112f8 100644 --- a/src/Console/GeneratorCommand.php +++ b/src/Console/GeneratorCommand.php @@ -76,9 +76,11 @@ class GeneratorCommand extends Command */ public function fire() { - if (file_exists($compiled = base_path() . '/bootstrap/compiled.php')) { + if (file_exists(base_path() . '/vendor/compiled.php') || + file_exists(base_path() . '/bootstrap/cache/compiled.php') || + file_exists(base_path() . '/storage/framework/compiled.php')) { $this->error( - 'Error generating IDE Helper: first delete bootstrap/compiled.php (php artisan clear-compiled)' + 'Error generating IDE Helper: first delete your compiled file (php artisan clear-compiled)' ); } else { $filename = $this->argument('filename');