Skip to content

Commit 65536cc

Browse files
Merge pull request #56 from istiak-tridip/fix/directory_separator
Fix: Use forward slashes in docblock paths
2 parents a47e9fa + d7c5bad commit 65536cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Route.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ private function finalJsMethod(string $method): string
183183

184184
private function relativePath(string $path)
185185
{
186-
return ltrim(str_replace(base_path(), '', $path), DIRECTORY_SEPARATOR);
186+
return str($path)->replace(base_path(), '')->ltrim(DIRECTORY_SEPARATOR)->replace(DIRECTORY_SEPARATOR, '/')->toString();
187187
}
188188

189189
private function closure(): Closure

0 commit comments

Comments
 (0)