Merge pull request #614 from WickedSik/master

Allow command to find and use pivot models
This commit is contained in:
Barry vd. Heuvel
2018-05-07 11:17:07 +02:00
committed by GitHub
+1 -1
View File
@@ -188,7 +188,7 @@ class ModelsCommand extends Command
$reflectionClass = new \ReflectionClass($name); $reflectionClass = new \ReflectionClass($name);
if (!$reflectionClass->isSubclassOf('Illuminate\Database\Eloquent\Model') if (!$reflectionClass->isSubclassOf('Illuminate\Database\Eloquent\Model')
|| $reflectionClass->isSubclassOf('Illuminate\Database\Eloquent\Relations\Pivot')) { || !$reflectionClass->isSubclassOf('Illuminate\Database\Eloquent\Relations\Pivot')) {
continue; continue;
} }