diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index 7d5fbfe..22271fe 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -184,7 +184,8 @@ class ModelsCommand extends Command } if (!$reflectionClass->IsInstantiable()) { - throw new \Exception($name . ' is not instantiable.'); + // ignore abstract class or interface + continue; } $model = $this->laravel->make($name);