thinkphp5的路由不支持前缀的写法吗

浏览:1096 发布日期:2018/03/24 分类:ThinkPHP5专区 关键字: 路由
比如像laravel中的这种写法
Route::prefix('admin')->namespace('Admin')->group(function () {
Route::prefix('article')->group(function () {
Route::get('index', 'ArticleController@index');
Route::get('create', 'ArticleController@create');
Route::post('store', 'ArticleController@store');
});
});
最佳答案
评论( 相关
后面还有条评论,点击查看>>