Accept scope & scopes as relation (#1452)

This commit is contained in:
Norman Huth
2024-02-08 09:20:47 +01:00
committed by GitHub
parent 6115100a0f
commit 4751420c9e
+1 -1
View File
@@ -673,7 +673,7 @@ class ModelsCommand extends Command
$comment = $this->getCommentFromDocBlock($reflection);
$this->setProperty($name, null, null, true, $comment);
}
} elseif (Str::startsWith($method, 'scope') && $method !== 'scopeQuery') {
} elseif (Str::startsWith($method, 'scope') && $method !== 'scopeQuery' && $method !== 'scope' && $method !== 'scopes') {
//Magic set<name>Attribute
$name = Str::camel(substr($method, 5));
if (!empty($name)) {