group(function () { // Route::get('/', fn () => 'Hello world!'); }); Route::middleware('api')->group(function () { // Route::get('/commands', fn () => collect($this->registeredCommands)->map(fn ($command) => [ // 'signature' => $command->getSignature(), // 'description' => $command->getDescription(), // ])); }); } }