We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c63d02 commit 034b306Copy full SHA for 034b306
src/Generators/ModelGenerator.php
@@ -181,7 +181,7 @@ protected function getImportedRelations(): array
181
$result[] = $this->generateClassNamespace($relation);
182
}
183
184
- $result[] = 'Illuminate\Database\Eloquent\Relations\\' . Str::ucfirst($relationName);
+ $result[] = 'Illuminate\Database\Eloquent\Relations\\' . Str::ucfirst($relationType);
185
186
187
0 commit comments