I've spent some time looking to change the value of app name dynamically through a controller so that I can allow a website admin to change the website name whenever it's required.
As a developer, I can change app name by going to .env file and change APP_NAME value
APP_NAME=laravel
Also, I can visit app.php file inside App\Config and change the name value
'name' => env('APP_NAME', 'Laravel'),
How can I make a HTML form that calls a controller method when submitting it and gets a value to override this value in either .env file or app.php file ?
Thank you.