Merge pull request #138 from SebSept/patch-1

Model doc : create model using App::make($name)
This commit is contained in:
Barry vd. Heuvel
2015-01-21 11:00:26 +01:00
+1 -1
View File
@@ -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);
}