We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
PHP环境:PHP Version 8.3.0 框架版本:ThinkPHP 8.0.3
是在多应用模式下与强路由模式下发现,单应用还没尝试
Route::group("login",function () {
Route::post('login', "login"); Route::post('logout', "logout");
// 正常走中间件 Route::rule('getRuleList', "getRuleList")->middleware(Auth::class);
// 不走中间件 Route::post('getRuleList', "getRuleList")->middleware(Auth::class); Route::rule('getRuleList', "getRuleList",'POST')->middleware(Auth::class);
})->prefix('Login/');
The text was updated successfully, but these errors were encountered:
No branches or pull requests
PHP环境:PHP Version 8.3.0
框架版本:ThinkPHP 8.0.3
是在多应用模式下与强路由模式下发现,单应用还没尝试
Route::group("login",function () {
// 正常走中间件
Route::rule('getRuleList', "getRuleList")->middleware(Auth::class);
// 不走中间件
Route::post('getRuleList', "getRuleList")->middleware(Auth::class);
Route::rule('getRuleList', "getRuleList",'POST')->middleware(Auth::class);
})->prefix('Login/');
The text was updated successfully, but these errors were encountered: