Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel 10 ERROR #34

Open
Alexander-Kane opened this issue Sep 24, 2024 · 4 comments
Open

Laravel 10 ERROR #34

Alexander-Kane opened this issue Sep 24, 2024 · 4 comments

Comments

@Alexander-Kane
Copy link

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
Copy link
Owner

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
Copy link

@daftspunk Is there something else that you use instead?

@daftspunk
Copy link
Owner

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
Copy link

Ah, thanks!

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

No branches or pull requests

3 participants