We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d31e67a + 0370e82 commit facb5e6Copy full SHA for facb5e6
src/RelationFinder.php
@@ -31,7 +31,7 @@ public function getModelRelations(string $model)
31
$methods = Collection::make($class->getMethods(ReflectionMethod::IS_PUBLIC))
32
->merge($traitMethods)
33
->reject(function (ReflectionMethod $method) use ($model) {
34
- return $method->class !== $model || $method->getNumberOfParameters() > 0;
+ return $method->class !== $model || $method->getNumberOfParameters() > 0 || $method->isStatic();;
35
});
36
37
$relations = Collection::make();
0 commit comments