Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Cannot update file if any configuration settings are arrays #22

Open
blackdrago opened this issue Feb 4, 2019 · 0 comments
Open

Cannot update file if any configuration settings are arrays #22

blackdrago opened this issue Feb 4, 2019 · 0 comments

Comments

@blackdrago
Copy link

blackdrago commented Feb 4, 2019

Using Laravel 5.4 with php 5.6

Whenever I try to change existing keys -- ANY existing config keys -- I receive this error: Unable to rewrite key "email_recipients" in config, rewrite failed.

Email recipients is an array of email addresses. Sometimes it's empty. But it's always an array.

I am using the repository model as a variable $config, and whenever I try to user $config->set($key, $value) then $config->save(), I get this error. Even if "email_recipients" is not being modified at all.

However, if I go into the config file and change the array of values for email_recipients to false (or any value), the $config->save() works without issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant