Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法兼容windows #27

Open
ZhouSiliang opened this issue Apr 19, 2023 · 0 comments
Open

无法兼容windows #27

ZhouSiliang opened this issue Apr 19, 2023 · 0 comments

Comments

@ZhouSiliang
Copy link

1681876854064
InteractsWithRoute.php文件第91行在路径中只替换了/,在windows系统中文件分隔符是\,因而导致无法在windows上使用注解路由
解决方案:
str_replace('/', '.', $filename)
替换为
str_replace(DIRECTORY_SEPARATOR, '.', $filename)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant