diff --git a/src/Migrator/Pipes/FindModelsWithSettings.php b/src/Migrator/Pipes/FindModelsWithSettings.php index 81eddc1..4a6ae83 100644 --- a/src/Migrator/Pipes/FindModelsWithSettings.php +++ b/src/Migrator/Pipes/FindModelsWithSettings.php @@ -86,6 +86,7 @@ protected function findModelsWithSettings(): Generator ->ltrim('app\\') ->rtrim('.php') ->replace(DIRECTORY_SEPARATOR, '\\') + ->ltrim('\\') ->start('\\'.$namespace); try { @@ -114,4 +115,4 @@ protected function findModelsWithSettings(): Generator yield new $className; } } -} \ No newline at end of file +}