diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index b0f9ee9..fe44250 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -168,7 +168,7 @@ class ModelsCommand extends Command throw new \Exception($name . ' is not instantiable.'); } - $model = new $name(); + $model = \App::make($name); if ($hasDoctrine) { $this->getPropertiesFromTable($model); }