Skip to content

Commit 6b3ce66

Browse files
authored
Merge pull request #37 from larapack/bugfix/support-window-separator
Support Windows directory separator
2 parents 779ad2a + 8539664 commit 6b3ce66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Hooks.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ protected function makeStubFiles($name)
516516

517517
foreach ($files as $file) {
518518
if ($path = $file->getRelativePath()) {
519-
$parts = explode('/', $path);
519+
$parts = explode('/', str_replace('\\', '/', $path));
520520

521521
$location = base_path("hooks/{$name}");
522522

0 commit comments

Comments
 (0)