code: protected function getParamsFromRoute(Route $route)
      {
          $params = [
              'tokenLength' => $route->getMatchedParam('token-length'),
              'tokenHex'    => ($route->getMatchedParam('token-hex') || $route->getMatchedParam('x')) ?: null,
              'tokenChars'  => $route->getMatchedParam('token-chars'),
              'delimiter'   => $route->getMatchedParam('delimiter'),
          ];
  
          return $params;
      }
docs: @param Route $route
  
  @return array