src/FlashMessage.php
protected function make($message, $title, $dismissable, $type)
    {
        if (! $this->isValidType($type)) {
            return false;
        }

        if (is_null($title) && $this->config('withTitles') === true) {
            $title = $this->getTitle($type);
        }

        $message = str_replace(
            '{counter}',
            count(@$_SESSION[$this->alias][$type]) + 1,
            $message
        );

        $this->addMessageToSession($message, $title, $dismissable, $type);

        return $this;
    }
protected function make($message, $title, $dismissable, $type)
    {
        if (! $this->isValidType($type)) {
            return false;
        }

        if (is_null($title) && $this->config('withTitles') === true) {
            $title = $this->getTitle($type);
        }

        $message = str_replace(
            '{counter}',
            count(@$_SESSION[$this->alias][$type]) + 1,
            $message
        );

        $this->addMessageToSession($message, $title, $dismissable, $type);

        return $this;
    }
protected function make ( $ message , $ title , $ dismissable , $ type ) { if ( ! $ this -> isValidType ( $ type ) ) { return false ; } if ( is_null ( $ title ) && $ this -> config ( 'withTitles' ) === true ) { $ title = $ this -> getTitle ( $ type ) ; } $ message = str_replace ( '{counter}' , count ( @ $ _SESSION [ $ this -> alias ] [ $ type ] ) + 1 , $ message ) ; $ this -> addMessageToSession ( $ message , $ title , $ dismissable , $ type ) ; return $ this ; }
Create the message and store it in the session

@param  string      $message
@param  string|null $title
@param  bool        $dismissable
@param  string      $type
@return bool|$this
Create the message and store it in the session