src/Support/Concerns/DataContainer.php
public function secureSet(string $key, $value = null)
    {
        try {
            if ($this->encrypter instanceof Encrypter) {
                $value = $this->encrypter->encrypt($value);
            }
        } catch (EncryptException $e) {
            //
        }

        return $this->set($key, $value);
    }
public function secureSet(string $key, $value = null)
    {
        try {
            if ($this->encrypter instanceof Encrypter) {
                $value = $this->encrypter->encrypt($value);
            }
        } catch (EncryptException $e) {
            //
        }

        return $this->set($key, $value);
    }
public function secureSet ( string $ key , $ value = null ) { try { if ( $ this -> encrypter instanceof Encrypter ) { $ value = $ this -> encrypter -> encrypt ( $ value ) ; } } catch ( EncryptException $ e ) { // } return $ this -> set ( $ key , $ value ) ; }
Set an ecrypted item value.

@param  string  $key
@param  mixed   $value

@return mixed
Set an ecrypted item value .