TP5.1 routing packet Registration Middleware

my route turns out to be like Route::get ("/ he", "admin/index/index2")-> middleware (" Login"); can be accessed normally
then cannot access routing packet middleware
what"s going on after being grouped according to this method?

Route::group("hello", function(){
    Route::get("he", "admin/index/index2");
})->middleware("Login");

Mar.13,2021

just passed by, and his definition of grouping is that even uri changes together
you try to open

.
http: / / [your domain name] / index.php/ hello / he

your he will come out naturally

Menu