Add message to flash message
@param string $key
@param mixed $message
964494
public function add($key, $message)
    {
        $fullKey = static::SESSION_NAME.'.'.$key;
        $base = Base::instance();
        if ($base->exists($fullKey)) {
            $base->push($fullKey, $message);
        } else {
            $base->set($fullKey, [$message]);
        }

        return $this;
    }
1292244
protected function setFlash($key, $value)
    {
        $flashbag = Session::getFlashBag();
        $flashbag->set($key, $value);
    }
606076
public function add(string $type, string $message): FlashBag
    {
        if (is_string($type) && is_string($message)) {
            $this->messages[$type][] = $message;

            // Save into session
            $this->saveToSession();
        } else {
            trigger_error('FlashBag::add() accept only string parameters', E_USER_ERROR);
        }

        return $this;
    }
1333983
public function createFlashMessage($key, $value)
    {
        $session = static::getInstance();
        $session->getFlashBag()->add($key, $value);
    }
453942
public function addMessage($message)
    {
        collect((array) $message)->each(function ($item) {
            collect($item)->flatten()->each(function ($flattened) {
                $this->messageList->push($flattened);
            });
        });
    }
945844
public function flash( $key, $value )
	{
		$this->put( $key, $value );

		$this->push( 'flash.new', $key );

		$this->removeFromOldFlashData( [$key] );
	}
150198
public function deleteMessage($key) {
		if(isset($this->msg[$key])) {
			unset($this->msg[$key]);
		}
		if(!$this->msg) {
			$this->deleteFile();
		}
	}
312596
public function addMessage($message, $label = 'info')
    {
        if ($this->hasCollector('messages')) {
            /** @var \DebugBar\DataCollector\MessagesCollector $collector */
            $collector = $this->getCollector('messages');
            $collector->addMessage($message, $label);
        }
    }
606839
public function flash($message, $level = null)
    {
        if (null === $level) {
            $level = static::DEFAULT_LEVEL;
        }

        $messages = $this->core->session()->get(static::SESSION_FLASH_KEY, []);

        $messages[] = [
            'message' => $message,
            'level'   => $level,
        ];

        $this->core->session()->put(static::SESSION_FLASH_KEY, $messages);

        return $this;
    }
50236
public function addMessage($message, $type) {
		if(!($this->session->get($this->sessionKey, [])) == null)
		{
			$messages = $this->session->get($this->sessionKey, []);
		}
		
		$messages[] = [
			'message' => $message,
			'type' => $type,
		];
		
		$this->session->set($this->sessionKey, $messages);
	}
511447
public function now($key, $value)
    {
        $this->put($key, $value);

        $this->push('_flash.old', $key);
    }
761400
public function addMessage($message) {
        $migrationName = get_class($this);
        $this->messages[] = sprintf("%s:  %s\n", $migrationName, $message);
    }
261048
public void addMessage(String message) {
    ActionMessages messages = (ActionMessages) next.get(Flash.MESSAGES);
    if (null == messages) {
      messages = new ActionMessages();
      put(Flash.MESSAGES, messages);
    }
    messages.getMessages().add(message);
  }
1204258
public function addError(string $key, string $message, string $group = null): self
    {
        if (!empty($group)) {
            $this->errors[$group][$key][] = $message;
        } else {
            $this->errors[$key][] = $message;
        }

        return $this;
    }
1236576
public function overwrite($key, $message=null)
    {
        if (!is_array($key)) {
            $this->overwrites[$key] = $message;
            return $this;
        }

        foreach ($key as $k=>$v) {
            $this->overwrite($k, $v);
        }

        return $this;
    }
1012897
public function set($key, $message)
    {
        $this->storage->set(self::FLASH_KEY, array($key => $message));
        return $this;
    }
1058719
public function addFlash($type, $message)
    {
        if (is_array($message)) {
            $this->getMbRequest()->getFlashBag()->set($type, $message);
        } else {
            $this->getMbRequest()->getFlashBag()->add($type, $message);
        }

        return $this;
    }