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.
1 parent de3b7d5 commit 0370e82Copy full SHA for 0370e82
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