Merge pull request #305 from matiaspub/patch-1

Add extend \Eloquent for ide-helper:models command
This commit is contained in:
Barry vd. Heuvel
2016-03-02 10:39:21 +01:00
+5 -1
View File
@@ -496,6 +496,10 @@ class ModelsCommand extends Command
$phpdoc->appendTag($tag);
}
if ($this->write) {
$phpdoc->appendTag(Tag::createInstance("@mixin \\Eloquent", $phpdoc));
}
$serializer = new DocBlockSerializer();
$serializer->getDocComment($phpdoc);
$docComment = $serializer->getDocComment($phpdoc);
@@ -519,7 +523,7 @@ class ModelsCommand extends Command
}
}
$output = "namespace {$namespace}{\n{$docComment}\n\tclass {$classname} {}\n}\n\n";
$output = "namespace {$namespace}{\n{$docComment}\n\tclass {$classname} extends \Eloquent {}\n}\n\n";
return $output;
}