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

Route 资源型路由 name 问题 #46

Open
krissss opened this issue Jul 19, 2022 · 1 comment
Open

Route 资源型路由 name 问题 #46

krissss opened this issue Jul 19, 2022 · 1 comment

Comments

@krissss
Copy link
Contributor

krissss commented Jul 19, 2022

Route::group('/a', function () {
   Route::resource('/x', app\admin\controller\AdminController::class);
});
Route::group('/b', function () {
    Route::resource('/x', app\admin\controller\AdminController::class);
});

该形式可以注册 /a/x/index/b/x/index 的路由,但是它们的 name 都是 x.index

目前看路由的 name 注册和获取太过直接了当,貌似没有太好的解决办法

@krissss
Copy link
Contributor Author

krissss commented Sep 9, 2022

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