-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..." ]); 
1
  • 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. Commented Dec 25, 2022 at 12:42

1 Answer 1

-2

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

Sign up to request clarification or add additional context in comments.

3 Comments

i know this, i want set this configs with form and controller !!
got this information

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.