Skip to content

Commit 4a45ae9

Browse files
committed
remove prefix slash
1 parent 1a862c7 commit 4a45ae9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Console/ModelsCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,8 +669,8 @@ public function getPropertiesFromMethods($model)
669669
$comment = $this->getCommentFromDocBlock($reflection);
670670
$this->setProperty($name, null, null, true, $comment);
671671
}
672-
} elseif (!empty($reflection->getAttributes('\Illuminate\Database\Eloquent\Attributes\Scope')) || (Str::startsWith($method, 'scope') && $method !== 'scopeQuery' && $method !== 'scope' && $method !== 'scopes')) {
673-
$scopeUsingAttribute = !empty($reflection->getAttributes('\Illuminate\Database\Eloquent\Attributes\Scope'));
672+
} elseif (!empty($reflection->getAttributes('Illuminate\Database\Eloquent\Attributes\Scope')) || (Str::startsWith($method, 'scope') && $method !== 'scopeQuery' && $method !== 'scope' && $method !== 'scopes')) {
673+
$scopeUsingAttribute = !empty($reflection->getAttributes('Illuminate\Database\Eloquent\Attributes\Scope'));
674674

675675
//Magic scope<name>Attribute
676676
$name = $scopeUsingAttribute ? $method : Str::camel(substr($method, 5));

0 commit comments

Comments
 (0)