think\response\Redirect::with PHP Метод

with() публичный Метод

重定向传值(通过Session)
public with ( string | array $name, mixed $value = null )
$name string | array 变量名或者数组
$value mixed
    public function with($name, $value = null)
    {
        if (is_array($name)) {
            foreach ($name as $key => $val) {
                Session::set($key, $val);
            }
        } else {
            Session::set($name, $value);
        }
        return $this;
    }