src/MocaBonita.php
public function enableFlash($session = null)
    {
        if (!$this->getMbRequest()->hasSession()) {
            $this->enableSession($session);
        }

        $this->getMbRequest()->session()->getFlashBag();

        return $this;
    }
public function enableFlash($session = null)
    {
        if (!$this->getMbRequest()->hasSession()) {
            $this->enableSession($session);
        }

        $this->getMbRequest()->session()->getFlashBag();

        return $this;
    }
public function enableFlash ( $ session = null ) { if ( ! $ this -> getMbRequest ( ) -> hasSession ( ) ) { $ this -> enableSession ( $ session ) ; } $ this -> getMbRequest ( ) -> session ( ) -> getFlashBag ( ) ; return $ this ; }
Enable flash session

@param Session $session

@return MocaBonita
Enable flash session