Level 31
Why not? But maybe Route::currentRouteName() fits you even better? https://laravel.com/docs/12.x/routing#accessing-the-current-route
In fact, closure inside Route::get(...) is technically the same as forwarding a request to a controller, and it is executed AFTER the route and it's name is registered.