Skip to content

Commit

Permalink
Revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
sileence committed Sep 16, 2020
1 parent c6f7c9a commit b02a290
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Illuminate/Console/GeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ protected function qualifyModel(string $model)
return $model;
}

return class_exists($rootNamespace.$model)
? $rootNamespace.$model
: $rootNamespace.'Models\\'.$model;
return is_dir(app_path('Models'))
? $rootNamespace.'Models\\'.$model
: $rootNamespace.$model;
}

/**
Expand Down

0 comments on commit b02a290

Please sign in to comment.