src/Leevel/Router/Redirect.php
public function url(string $url, array $params = [], string $subdomain = 'www', $suffix = null, int $status = 302, array $headers = []): RedirectResponse
    {
        $url = $this->url->make($url, $params, $subdomain, $suffix);

        return $this->createRedirectResponse($url, $status, $headers);
    }
public function url(string $url, array $params = [], string $subdomain = 'www', $suffix = null, int $status = 302, array $headers = []): RedirectResponse
    {
        $url = $this->url->make($url, $params, $subdomain, $suffix);

        return $this->createRedirectResponse($url, $status, $headers);
    }
返回一个 URL 生成跳转响应.

@param string      $url
@param array       $params
@param string      $subdomain
@param bool|string $suffix
@param int         $status
@param array       $headers

@return \Leevel\Http\RedirectResponse