I am trying to set the database name, server name, username and password in Laravel via an html form (similar to the way that this can be done in WordPress). Is there any way to do this with Laravel?
It is possible to do it in 2 ways in Laravel:
1) Go to <projectname>/config/database.php and search for 'connections' =>
2) Set it in .env file on the root.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With