src/Session/Session.php
public function createFlashMessage($key, $value)
    {
        $session = static::getInstance();
        $session->getFlashBag()->add($key, $value);
    }
public function createFlashMessage($key, $value)
    {
        $session = static::getInstance();
        $session->getFlashBag()->add($key, $value);
    }
public function createFlashMessage ( $ key , $ value ) { $ session = static :: getInstance ( ) ; $ session -> getFlashBag ( ) -> add ( $ key , $ value ) ; }
Add flash message.

@param $key
@param $value
Add flash message .