public function onFlash($eventName, array $data)
    {
        $this->validateEventData($data);

        list($notification, $notificationBag, $message) = $data;

        $key = implode('.', [$this->key, $notificationBag->getName()]);

        $this->session->push($key, $message);

        return true;
    }
public function onFlash($eventName, array $data)
    {
        $this->validateEventData($data);

        list($notification, $notificationBag, $message) = $data;

        $key = implode('.', [$this->key, $notificationBag->getName()]);

        $this->session->push($key, $message);

        return true;
    }
public function onFlash ( $ eventName , array $ data ) { $ this -> validateEventData ( $ data ) ; list ( $ notification , $ notificationBag , $ message ) = $ data ; $ key = implode ( '.' , [ $ this -> key , $ notificationBag -> getName ( ) ] ) ; $ this -> session -> push ( $ key , $ message ) ; return true ; }
Execute this event to flash messages.

@param string $eventName
@param array  $data       Event payload. Should be an array containing 3 elements:
[ Notification, NotificationsBag, Message ]
@return bool
Execute this event to flash messages .