From 4751420c9ec5e87047f91bafcd833eebce115c46 Mon Sep 17 00:00:00 2001 From: Norman Huth Date: Thu, 8 Feb 2024 09:20:47 +0100 Subject: [PATCH] Accept `scope` & `scopes` as relation (#1452) --- src/Console/ModelsCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index b5cb107..b350caf 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -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 setAttribute $name = Str::camel(substr($method, 5)); if (!empty($name)) {