Support the ongoing development of Laravel.io →
Configuration Database Forms
Last updated 1 year ago.
0

Have you thought about "outsourcing" the respective config files to the database? I haven't done this myself, but I know that for example with ACL or routing, sometimes the data is in the database instead of a PHP file. Thus, I guess you could do it for config files too...

Just to give you a new perspective on this problem ;)

0

One of the config files I would like to maintain from the UI is the database file. I can't add database connection information to a database without a connection to the database.... sadly.

0

I've done file_put_contents in the past without issue, just make sure you do some sanity checks before writing, both on the setvalues (can you connect to the DB) and file permissions

0

elite123 said:

I've done file_put_contents in the past without issue, just make sure you do some sanity checks before writing, both on the setvalues (can you connect to the DB) and file permissions

Yeah, I figured this was the only option available. Thank you.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.