Skip to content

Commit

Permalink
tweak how factory model is determined
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Oct 23, 2020
1 parent dc08cba commit 4f38176
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -112,7 +112,7 @@ protected function guessModelName($name)
$name = substr($name, 0, -7);
}

$modelName = $this->qualifyModel(class_basename($name));
$modelName = $this->qualifyModel(Str::after($name, 'App\\'));

if (class_exists($modelName)) {
return $modelName;
Expand Down

0 comments on commit 4f38176

Please sign in to comment.