FlashMessage.php
public function getFlashMessage()
    {
        if (Session::get('FMess') === true) {

            $response = array(
                'type' => Session::get('FMessType'),
                'message' => Session::get('FMessMsg')
            );
            Session::destroy('FMess');
            Session::destroy('FMessType');
            Session::destroy('FMessMsg');

            return $response;
        }
        return false;
    }
public function getFlashMessage()
    {
        if (Session::get('FMess') === true) {

            $response = array(
                'type' => Session::get('FMessType'),
                'message' => Session::get('FMessMsg')
            );
            Session::destroy('FMess');
            Session::destroy('FMessType');
            Session::destroy('FMessMsg');

            return $response;
        }
        return false;
    }
public function getFlashMessage ( ) { if ( Session :: get ( 'FMess' ) === true ) { $ response = array ( 'type' => Session :: get ( 'FMessType' ) , 'message' => Session :: get ( 'FMessMsg' ) ) ; Session :: destroy ( 'FMess' ) ; Session :: destroy ( 'FMessType' ) ; Session :: destroy ( 'FMessMsg' ) ; return $ response ; } return false ; }
Create info flash message
@return array|bool
Create info flash message