public function add($message, $type = 'error')
    {
        $this->session[$this->prefix][] = ['message' => $message, 'type' => $type];

        return $this;
    }
public function add($message, $type = 'error')
    {
        $this->session[$this->prefix][] = ['message' => $message, 'type' => $type];

        return $this;
    }
public function add ( $ message , $ type = 'error' ) { $ this -> session [ $ this -> prefix ] [ ] = [ 'message' => $ message , 'type' => $ type ] ; return $ this ; }
Adds message to flashbag

@param string $message
@param string $type

@return $this
Adds message to flashbag