Skip to content

Commit

Permalink
Fix for Windows paths
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonferens committed Sep 27, 2024
1 parent 422c4b7 commit ec7303c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Generators/AbstractEnumGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ protected function imports(): Collection
$abstractPath = collect(explode('/', config('paragon.enums.paths.generated')));
$relativeFilePath = str($file->getPath())
->after(resource_path())
->replace('\\', '/')
->ltrim('/')
->explode('/')
->map(fn ($directory, $index) => data_get($abstractPath, $index) === $directory ? '..' : $directory)
Expand Down

0 comments on commit ec7303c

Please sign in to comment.