Skip to content

Commit

Permalink
hotfix: Error with resource generation on windows: Directory separato…
Browse files Browse the repository at this point in the history
…r issues.
  • Loading branch information
coolsam726 committed Apr 19, 2024
1 parent 85f9e57 commit 01973e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public function convertPathToNamespace(string $fullPath): string

return str($relative)
->ltrim('/\\')
->replace('/', DIRECTORY_SEPARATOR)
->replace('\\', DIRECTORY_SEPARATOR)
->prepend(DIRECTORY_SEPARATOR)
->prepend(config('modules.namespace', 'Modules'))
->replace(DIRECTORY_SEPARATOR, '\\')
Expand Down

0 comments on commit 01973e0

Please sign in to comment.