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;
    }
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;
    }
@param Route $route

@return array