daftspunk / laravel-config-writer

Write to Laravel Config files and maintain file integrity
172 stars 83 forks source link

Laravel 10 ERROR #34

Open Alexander-Kane opened 1 month ago

Alexander-Kane commented 1 month ago

Laravel 10.48.20

Code: Config::write('app.url', 'http://domain.com'); or app('config')->write('app.url', 'http://domain.com');

I'm getting an error: Method Illuminate\Config\Repository::write does not exist.

daftspunk commented 1 month ago

Hi @Alexander-Kane

I no longer use this package, however, will accept a pull request if you need to make any changes to it.

kdg-cwood commented 2 weeks ago

@daftspunk Is there something else that you use instead?

daftspunk commented 2 weeks ago

I write to the .env file instead now, which is relatively simple without needing a library.

https://github.com/octobercms/october/blob/b8acf8deb1b453b336f4b594c4d6972438385ec7/modules/system/traits/SetupHelper.php#L109-L128

kdg-cwood commented 2 weeks ago

Ah, thanks!