src/FlashMessageManager.php
/**
     * Call from the service provider `boot` method.
     * @see FlashMessageServiceProvider::boot
     */
Call from the service provider `boot` method.
Call from the service provider ` boot ` method .
public function Init(){
        if( !$this->isInit ){
            $t = session($this->sessionKey);
            if(session()->has($this->sessionKey))
                $this->aBeforeMsg = session($this->sessionKey);
            else{
                $this->aBeforeMsg['success'] = [];
                $this->aBeforeMsg['info'] = [];
                $this->aBeforeMsg['warning'] = [];
                $this->aBeforeMsg['error'] = [];
            }
            session()->forget($this->sessionKey);
            $this->aMsg['success'] = [];
            $this->aMsg['info'] = [];
            $this->aMsg['warning'] = [];
            $this->aMsg['error'] = [];
            $this->isInit = true;
        }
    }
public function Init ( ) { if ( ! $ this -> isInit ) { $ t = session ( $ this -> sessionKey ) ; if ( session ( ) -> has ( $ this -> sessionKey ) ) $ this -> aBeforeMsg = session ( $ this -> sessionKey ) ; else { $ this -> aBeforeMsg [ 'success' ] = [ ] ; $ this -> aBeforeMsg [ 'info' ] = [ ] ; $ this -> aBeforeMsg [ 'warning' ] = [ ] ; $ this -> aBeforeMsg [ 'error' ] = [ ] ; } session ( ) -> forget ( $ this -> sessionKey ) ; $ this -> aMsg [ 'success' ] = [ ] ; $ this -> aMsg [ 'info' ] = [ ] ; $ this -> aMsg [ 'warning' ] = [ ] ; $ this -> aMsg [ 'error' ] = [ ] ; $ this -> isInit = true ; } }
Call from the service provider `boot` method.
Call from the service provider ` boot ` method .