src/Session/Session.php
public function getFlashMessage($key)
    {
        $session = static::getInstance();
        foreach ($session->getFlashBag()->get($key, []) as $message) {
            return $message ?: null;
        }

        return '';
    }
public function getFlashMessage($key)
    {
        $session = static::getInstance();
        foreach ($session->getFlashBag()->get($key, []) as $message) {
            return $message ?: null;
        }

        return '';
    }
public function getFlashMessage ( $ key ) { $ session = static :: getInstance ( ) ; foreach ( $ session -> getFlashBag ( ) -> get ( $ key , [ ] ) as $ message ) { return $ message ? : null ; } return '' ; }
Get message from flash bag.

@param $key

@return null|string
Get message from flash bag .