mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-21 11:33:11 +00:00
Merge pull request #138 from SebSept/patch-1
Model doc : create model using App::make($name)
This commit is contained in:
@@ -168,7 +168,7 @@ class ModelsCommand extends Command
|
|||||||
throw new \Exception($name . ' is not instantiable.');
|
throw new \Exception($name . ' is not instantiable.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$model = new $name();
|
$model = \App::make($name);
|
||||||
if ($hasDoctrine) {
|
if ($hasDoctrine) {
|
||||||
$this->getPropertiesFromTable($model);
|
$this->getPropertiesFromTable($model);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user