Use laravel instance instead of App facade

Addition to #138
This commit is contained in:
Barry vd. Heuvel
2015-01-21 11:01:29 +01:00
parent cc07cd3b2c
commit 52b3accd70
+3 -1
View File
@@ -168,10 +168,12 @@ class ModelsCommand extends Command
throw new \Exception($name . ' is not instantiable.');
}
$model = \App::make($name);
$model = $this->laravel->make($name);
if ($hasDoctrine) {
$this->getPropertiesFromTable($model);
}
$this->getPropertiesFromMethods($model);
$output .= $this->createPhpDocs($name);
} catch (\Exception $e) {