Welcome to OStack Knowledge Sharing 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 Answer

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

这个人很懒,什么也没留下...
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...