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 89b290f commit b89558bCopy full SHA for b89558b
src/Generators/ModelGenerator.php
@@ -223,7 +223,7 @@ protected function buildRelationships(Model $model)
223
if ($is_model_fqn) {
224
$fqcn = $class ?? $column_name;
225
$class_name = Str::afterLast($fqcn, '\\');
226
- }else{
+ } else {
227
$class_name = Str::studly($class ?? $method_name);
228
$fqcn = $this->fullyQualifyModelReference($class_name) ?? $model->fullyQualifiedNamespace() . '\\' . $class_name;
229
}
0 commit comments