Skip to content

Commit

Permalink
Fix models namespace issues (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
ObaydaAlesawi authored Apr 17, 2020
1 parent dbad5a3 commit 6faf201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Generators/ControllerGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ private function fullyQualifyModelReference(string $sub_namespace, string $model
/** @var \Blueprint\Models\Model $model */
$model = $this->modelForContext($model_name);

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

Expand Down

0 comments on commit 6faf201

Please sign in to comment.