Merge pull request #665 from JeppeKnockaert/fix-model-comments

Only skip non-models when generating docs
This commit is contained in:
Barry vd. Heuvel
2018-05-24 14:10:51 +02:00
committed by GitHub
+1 -2
View File
@@ -187,8 +187,7 @@ class ModelsCommand extends Command
// handle abstract classes, interfaces, ...
$reflectionClass = new \ReflectionClass($name);
if (!$reflectionClass->isSubclassOf('Illuminate\Database\Eloquent\Model')
|| !$reflectionClass->isSubclassOf('Illuminate\Database\Eloquent\Relations\Pivot')) {
if (!$reflectionClass->isSubclassOf('Illuminate\Database\Eloquent\Model')) {
continue;
}