First time when user runs my application i want to set database details as entered by the user in my application.
Please let me know how i can edit config/database.php file in Laravel and update database credentials as provided by user.
'connections' => array(
'mysql' => array(
'driver' => 'mysql',
'host' => '*********',
'database' => '********',
'username' => '********',
'password' => '*******',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
),
),