Skip to content

Commit 6faf201

Browse files
Fix models namespace issues (#124)
1 parent dbad5a3 commit 6faf201

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generators/ControllerGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ private function fullyQualifyModelReference(string $sub_namespace, string $model
207207
/** @var \Blueprint\Models\Model $model */
208208
$model = $this->modelForContext($model_name);
209209

210-
if (isset($this->models[Str::studly($model_name)])) {
210+
if (isset($model)) {
211211
return $model->fullyQualifiedClassName();
212212
}
213213

0 commit comments

Comments
 (0)