mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +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.');
|
||||
}
|
||||
|
||||
$model = new $name();
|
||||
$model = \App::make($name);
|
||||
if ($hasDoctrine) {
|
||||
$this->getPropertiesFromTable($model);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user