From 52b3accd7093eed02072b263c004f020fc913aea Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Wed, 21 Jan 2015 11:01:29 +0100 Subject: [PATCH] Use laravel instance instead of App facade Addition to #138 --- src/Console/ModelsCommand.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index fe44250..8144725 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -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) {