src/Leevel/Http/RedirectResponse.php
public function withErrors($value, string $key = 'default'): IResponse
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        $errors = $this->session->getFlash('errors', []);
        $errors[$key] = $value;

        $this->session->flash('errors', $errors);

        return $this;
    }
public function withErrors($value, string $key = 'default'): IResponse
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        $errors = $this->session->getFlash('errors', []);
        $errors[$key] = $value;

        $this->session->flash('errors', $errors);

        return $this;
    }
闪存错误信息.

@param mixed  $value
@param string $key

@return $this