diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index 5ec6fdb..d8efc3d 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 instanciable.'); } - $model = new $name(); + $model = \App::make($name); if ($hasDoctrine) { $this->getPropertiesFromTable($model); }