src/models/traits/Encryptable.php
protected function valid(string $key, string $value)
    {
        return in_array($key, $this->encryptable) && !is_null($value) && !empty($value);
    }
protected function valid(string $key, string $value)
    {
        return in_array($key, $this->encryptable) && !is_null($value) && !empty($value);
    }
protected function valid ( string $ key , string $ value ) { return in_array ( $ key , $ this -> encryptable ) && ! is_null ( $ value ) && ! empty ( $ value ) ; }
Check if key and value is valid and able to crypt or decrypt

@param string $key
@param string $value
@return bool
Check if key and value is valid and able to crypt or decrypt