The problem of grouping of TP5.1 routing Middleware

there is no problem with this access

Route::get("/register", "index/register/register")->middleware("Login");
Route::get("/login", "index/login/login")->middleware("Login");

the manual also says that middleware forms that support routing groups



Mar.30,2021

Route::group('test', function(){
    Route::get('test/login', 'index/login/login');
    Route::get('test/register', 'index/register/register');
})->middleware('Login');

try to write this


is there anyone else.


Thank you for the invitation, but if you don't use ThinPHP, you can post the running tree for better troubleshooting


.
Route::group('user', function(){
    Route::get('login', 'index/login/login');
    Route::get('register', 'index/register/register');
})->middleware('Login');

visit / user/login


Route::group (['test'], function () {

)
Route::get('login', 'index/login/login');
Route::get('register', 'index/register/register');

})-> middleware ('Login');
write this way, I use 5.1.19, welcome to harass.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b673-2ba0b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b673-2ba0b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?