rawilk / laravel-settings

Store Laravel application settings in the database.
https://randallwilk.dev/docs/laravel-settings
MIT License
185 stars 17 forks source link

how can I store key and value without any modification like md5? #53

Closed matiazar closed 8 months ago

matiazar commented 9 months ago

Laravel Settings

v3

Laravel Version

v10

Bug description

how can I store key and value without any modification like md5? please.

Steps to reproduce

No response

Relevant log output

No response

matiazar commented 9 months ago

I found how to disable decryotion.. now I need to disable serialization. I need only a value. thanks

rawilk commented 9 months ago

Please refer to the docs for this.

There is already a built-in key generator, called the ReadableKeyGenerator, that will not use md5 on the setting keys. You just need to configure the package to use this one instead in the config file.

matiazar commented 9 months ago

yes I used it,. but now I want to make the value clean.. store the value I send.. only text or number

thanks

rawilk commented 9 months ago

What do you mean by "make the value clean"? If you don't want the value encrypted, you can disable that in the config. You can also use a custom value serializer, similar to how the key generators work, to prevent the value from being serialized or json_encoded before storing it.

rawilk commented 8 months ago

I'm going to close this issue since it hasn't had any activity in a while. Feel free to re-open in the future if necessary.