'How to submit form value on .env or config/myconfig.php?

I have a CRM for managing data, so far so good. I am thinking to add some settings extra option on my CRM, i am thinking for a route /setting-value and on this to display a form. I mean when a user go to this route to personalize CRM as his like, for example site-name, body-background-color, site-description, maybe to change db config. I know this config have to do with .env and config/myconfig.php, what i don't know is how to pass this submit form on .env or my config, how it really works. I have search on google but i didn't find any good documentation about this. Any one have an idea?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source