Skip to content

Commit

Permalink
Remove backslash to \Models before add namespace that already has \ a…
Browse files Browse the repository at this point in the history
…t the end.

Fix to DarkGhostHunter#21
  • Loading branch information
ricventu committed Dec 12, 2021
1 parent 9576e9d commit c353d38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Migrator/Pipes/FindModelsWithSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ protected function findModelsWithSettings(): Generator
->ltrim('app\\')
->rtrim('.php')
->replace(DIRECTORY_SEPARATOR, '\\')
->ltrim('\\')
->start('\\'.$namespace);

try {
Expand Down Expand Up @@ -114,4 +115,4 @@ protected function findModelsWithSettings(): Generator
yield new $className;
}
}
}
}

0 comments on commit c353d38

Please sign in to comment.