-1

My larave app have setup steps. In the database configuration step, user inputs should be placed as database configuration, but i dont know how can i set custom configs for database.

I used this code, but it changes the configs temporarily and doesn't save them.

Config::set("database.connections.mysql", [
    "host" => "...host...",
    "database" => "...database...",
    "username" => "...username...",
    "password" => "...password..."
]);
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Dec 25 '22 at 12:42

1 Answers1

-2

Just try to change .env file or on config/database.php do your corrections

issdilshod
  • 104
  • 7