Skip to content

Commit 17751ab

Browse files
Muetze42d3v2a
authored andcommitted
Accept scope & scopes as relation (barryvdh#1452)
1 parent 0613aaf commit 17751ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Console/ModelsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ public function getPropertiesFromMethods($model)
673673
$comment = $this->getCommentFromDocBlock($reflection);
674674
$this->setProperty($name, null, null, true, $comment);
675675
}
676-
} elseif (Str::startsWith($method, 'scope') && $method !== 'scopeQuery') {
676+
} elseif (Str::startsWith($method, 'scope') && $method !== 'scopeQuery' && $method !== 'scope' && $method !== 'scopes') {
677677
//Magic set<name>Attribute
678678
$name = Str::camel(substr($method, 5));
679679
if (!empty($name)) {

0 commit comments

Comments
 (0)