src/Leevel/Session/Session.php
public function nowFlash(string $key, $value): void
    {
        $this->set($this->flashDataKey($key), $value);

        $this->mergeOldFlash([
            $key,
        ]);
    }
public function nowFlash(string $key, $value): void
    {
        $this->set($this->flashDataKey($key), $value);

        $this->mergeOldFlash([
            $key,
        ]);
    }
闪存一个 flash 用于当前请求使用,下一个请求将无法获取.

@param string $key
@param mixed  $value