Flash only some of the input to the session.

@param  array|mixed $keys The keys.
@return void
14304
public function flash_except( $keys ) {
		$this->session()->flash_input(
			$this->except( is_array( $keys ) ? $keys : func_get_args() )
		);
	}
776589
public function only($keys)
    {
        $keys = is_array($keys) ? $keys : func_get_args();

        $results = [];

        $input = $this->all();

        foreach ($keys as $key) {
            Arr::set($results, $key, data_get($input, $key));
        }

        return $results;
    }
216478
private function validateKeys(array $keys)
    {
        foreach ($keys as $key) {
            $key = (string)$key;
            $this->validateKey($key);
        }
    }
928383
function mergeKeys( &$originalKeys, $keys )
    {
        foreach ( $keys as $key )
        {
            if ( count( $key ) >= 2 )
                $originalKeys[$key[0]] = $key[1];
        }
    }
575575
function (key) {
            var keys = Array.isArray(key) ? key : arguments;

            return self.input.flash('only', keys);
        }
620831
public function exclude(...$keys): self {
        if ($keys) {
            foreach ($keys as $key) {
                $this->_excludeKeys[$key] = 1;
            }
        } else {
            $this->_excludeKeys = [];
        }
        return $this;
    }
639934
public function flash($paths)
	{
		if ( ! is_array($paths))
		{
			$paths = array($paths);
		}

		foreach ($paths as $path)
		{
			$this->flash_paths[] = $this->prep_path($path);
		}

		return $this;
	}
124780
public static function allExcept(array $keys)
    {
        $sessions = static::all();

        if (!empty($keys))
        {
            foreach ($keys as $key) {
                unset($sessions[$key]);
            }
        }

        return $sessions;
    }
896152
protected function moveFlash()
    {
        if (!isset($_SESSION[static::FLASH_NEXT])) {
            $_SESSION[static::FLASH_NEXT] = [];
        }
        $_SESSION[static::FLASH_NOW] = $_SESSION[static::FLASH_NEXT];
        $_SESSION[static::FLASH_NEXT] = [];
        $this->flashMoved = true;
    }
80034
protected function mergeHeader(array $keys)
    {
        foreach ($keys as $key) {
            if (!isset($this->header[$key])) {
                $this->header[$key] = '';
            }
        }
    }
791234
public function reset(array $keys)
    {
        foreach ($keys as $key) {
            $this->getSettingOrFail($key);
        }

        $this->backend->removeSettings($keys);
    }
134705
public function getFlash($key) {
        if ($this->has($key)) {
            $flashData = $_SESSION[$key];
            $this->delete($key);
            return $flashData;
        }
    }
691007
public function clear($keys = null)
    {
        if (is_null($keys)) {
            $this->items = [];

            return;
        }

        $keys = (array) $keys;

        foreach ($keys as $key) {
            $this->set($key, []);
        }
    }
511447
public function now($key, $value)
    {
        $this->put($key, $value);

        $this->push('_flash.old', $key);
    }
1230240
public function delSessions($session_keys)
    {
        if ($this->isSingle()) {
            foreach ($session_keys as $session_key) {
                $this->delSession($session_key);
            }
        }
    }
864075
public function only($keys)
    {
        $keys = is_array($keys) ? $keys : func_get_args();

        return $this->filter(function ($value, $key) use ($keys) {
            return in_array($key, $keys, true);
        });
    }
234949
public function flash($key, $val)
    {
        $this->set($key, $val);
        $this->setSessionInfo($key, 'expire', true);
    }