public function add($message, $type, $group = '0')
    {
        if (! is_array($message)) {
            $message = [$message];
        }

        $this->populateMessages($message, $type, $group);

        session()->flash($this->session_key, $this->messages);

        return $this;
    }
public function add($message, $type, $group = '0')
    {
        if (! is_array($message)) {
            $message = [$message];
        }

        $this->populateMessages($message, $type, $group);

        session()->flash($this->session_key, $this->messages);

        return $this;
    }
public function add ( $ message , $ type , $ group = '0' ) { if ( ! is_array ( $ message ) ) { $ message = [ $ message ] ; } $ this -> populateMessages ( $ message , $ type , $ group ) ; session ( ) -> flash ( $ this -> session_key , $ this -> messages ) ; return $ this ; }
Set new message for the next request.

@param string|array $message
@param string       $type
@param string       $group

@return $this
Set new message for the next request .