Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.8k views
in Technique[技术] by (1.4k points)

Laravel使用或在路由内部使用多个URL作为操作

在Laravel我有这个路线组:

Route::prefix('panel')->group(function(){
    Route::get('/', AdminComponent::class);
    Route::get('/administrator', AdminComponent::class);
});

我的问题是我该如何结合urls它们具有相同行为的方式来打开管理网址

我可以将这条路线合并为一条路线吗?例如:

Route::prefix('panel')->group(function(){
    Route::get('/|administrator', AdminComponent::class);
});

拉拉韦尔


这个人很懒,什么也没留下...
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (1.4k points)
等待大神答复语法高亮

这个人很懒,什么也没留下...
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...