src/Support/Concerns/DataContainer.php
public function secureGet(string $key, $default = null)
    {
        $value = $this->get($key, $default);

        if ($this->encrypter instanceof Encrypter) {
            try {
                return $this->encrypter->decrypt($value);
            } catch (DecryptException $e) {
                //
            }
        }

        return $value;
    }
public function secureGet(string $key, $default = null)
    {
        $value = $this->get($key, $default);

        if ($this->encrypter instanceof Encrypter) {
            try {
                return $this->encrypter->decrypt($value);
            } catch (DecryptException $e) {
                //
            }
        }

        return $value;
    }
public function secureGet ( string $ key , $ default = null ) { $ value = $ this -> get ( $ key , $ default ) ; if ( $ this -> encrypter instanceof Encrypter ) { try { return $ this -> encrypter -> decrypt ( $ value ) ; } catch ( DecryptException $ e ) { // } } return $ value ; }
Get an encrypted item value.

@param  string  $key
@param  mixed   $default

@return mixed
Get an encrypted item value .