protected function load()
    {
        $this->reset();

        $messages = $this->cookie->get($this->cookieKey);

        if ($messages) {
            $messages = json_decode($messages, true);

            if (!empty($messages[self::DURABLE])) {
                $this->messages[self::DURABLE] = $messages[self::DURABLE];
            }
            if (!empty($messages[self::NEXT])) {
                $this->messages[self::NOW] = $messages[self::NEXT];
            }

            $this->save();
        }

        return $this;
    }
protected function load()
    {
        $this->reset();

        $messages = $this->cookie->get($this->cookieKey);

        if ($messages) {
            $messages = json_decode($messages, true);

            if (!empty($messages[self::DURABLE])) {
                $this->messages[self::DURABLE] = $messages[self::DURABLE];
            }
            if (!empty($messages[self::NEXT])) {
                $this->messages[self::NOW] = $messages[self::NEXT];
            }

            $this->save();
        }

        return $this;
    }
protected function load ( ) { $ this -> reset ( ) ; $ messages = $ this -> cookie -> get ( $ this -> cookieKey ) ; if ( $ messages ) { $ messages = json_decode ( $ messages , true ) ; if ( ! empty ( $ messages [ self :: DURABLE ] ) ) { $ this -> messages [ self :: DURABLE ] = $ messages [ self :: DURABLE ] ; } if ( ! empty ( $ messages [ self :: NEXT ] ) ) { $ this -> messages [ self :: NOW ] = $ messages [ self :: NEXT ] ; } $ this -> save ( ) ; } return $ this ; }
Load messages from cookie.

@return $this
Load messages from cookie .