diff --git a/src/Barryvdh/LaravelIdeHelper/GeneratorCommand.php b/src/Barryvdh/LaravelIdeHelper/GeneratorCommand.php index 7a71b0f..5013c14 100644 --- a/src/Barryvdh/LaravelIdeHelper/GeneratorCommand.php +++ b/src/Barryvdh/LaravelIdeHelper/GeneratorCommand.php @@ -104,6 +104,10 @@ class GeneratorCommand extends Command { }else{ $root = $facade; } + if(!class_exists($root) && !interface_exists($root)){ + $this->error("Class $root is not found."); + continue; + } if(strpos($alias, '\\') !== false){ $parts = explode('\\', $alias);