Best Practices

Sensitive Data

{note} You're browsing the documentation for an old version of laravel-settings. Consider upgrading your project to v3. Check your version with the following command:

composer show rawilk/laravel-settings

If your application needs to store any kind of sensitive data in the database for a setting, you should enable encryption for settings in config/settings.php. Encryption is enabled by default, but you can always disable encryption if you don't need to store any sensitive settings.

You can also just use the default config system and reference the sensitive data via the env() helper in your config files if you don't need to store these settings in the database.

Previous
Overriding Config
Caught a mistake? Suggest an edit on GitHub