Skip to content

Commit 524215d

Browse files
authored
Update src/Generators/ModelGenerator.php
1 parent ee47e50 commit 524215d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generators/ModelGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ protected function shouldImportRelation(string $relation): bool
185185
{
186186
$relationNamespace = when(Str::contains($relation, '/'), fn () => Str::beforeLast($relation, '/'), '');
187187

188-
return $relationNamespace != $this->modelSubFolder;
188+
return $relationNamespace !== $this->modelSubFolder;
189189
}
190190

191191
protected function generateClassNamespace(string $className, ?string $folder = null): string

0 commit comments

Comments
 (0)