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

关于多应用路由的BIG BUG #409

Closed
neatstudio opened this issue Aug 8, 2020 · 6 comments
Closed

关于多应用路由的BIG BUG #409

neatstudio opened this issue Aug 8, 2020 · 6 comments
Labels
bug Something isn't working

Comments

@neatstudio
Copy link

说明:
多应用路由涉及到auth的。都是叫users.index,不管是哪个应用。

目前只有一个办法,就是路由全部在routes重写,把name覆盖掉。
正常情况下没什么大问题,但是php artisan route:cache 会报错

@jqhph jqhph added the bug Something isn't working label Aug 8, 2020
@jqhph jqhph closed this as completed in 50d70c0 Aug 8, 2020
@jqhph
Copy link
Owner

jqhph commented Aug 8, 2020

已修复,感谢反馈

@neatstudio
Copy link
Author

Unable to prepare route [union/helpers/extensions] for serialization. Another route has already been assigned name [extensions.index].

运行一下:
php artisan roue:cache
还缺 一点点

jqhph added a commit that referenced this issue Aug 8, 2020
@jqhph
Copy link
Owner

jqhph commented Aug 8, 2020

Unable to prepare route [union/helpers/extensions] for serialization. Another route has already been assigned name [extensions.index].

运行一下:
php artisan roue:cache
还缺 一点点

可以了,重新拉取下代码

@neatstudio
Copy link
Author

继续。还有BUG。
比如主项目下的resource 是 category,你会生成 category.index.

如果子项目下的resource 也用了category ,你也会生成 category.index ......

@jqhph
Copy link
Owner

jqhph commented Aug 8, 2020

这个你可以自己在路由文件中加上别名

@neatstudio
Copy link
Author

OK。在resource之前的group里加了一个'as'=>'subname.',解决了,
这时候生成出来的就是“subname.category.index”。类似前缀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants