Skip to content

Commit 034b306

Browse files
authored
Update src/Generators/ModelGenerator.php
1 parent 9c63d02 commit 034b306

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
@@ -181,7 +181,7 @@ protected function getImportedRelations(): array
181181
$result[] = $this->generateClassNamespace($relation);
182182
}
183183

184-
$result[] = 'Illuminate\Database\Eloquent\Relations\\' . Str::ucfirst($relationName);
184+
$result[] = 'Illuminate\Database\Eloquent\Relations\\' . Str::ucfirst($relationType);
185185
}
186186
}
187187

0 commit comments

Comments
 (0)