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

Docs for settings #60

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Docs for settings #60

wants to merge 2 commits into from

Conversation

SRWieZ
Copy link
Contributor

@SRWieZ SRWieZ commented Nov 25, 2024

Docs for NativePHP/laravel#432 and NativePHP/electron#141
On less task for: NativePHP/laravel#364


I understand you prefer not to include Electron-specific details due to the upcoming Tauri driver, but I thought someone might need them for debugging purposes. I added a note indicating that settings are stored in config.json, as mentioned in the package documentation sindresorhus/electron-store.

I also looked for the equivalent package in Tauri, which is harshkhandeparkar/tauri-settings. They replicate everything from tauri-settings but use settings.json for the filename, which is configurable.

I believe the usefulness of those dependencies is debatable. It would only take a few lines in Laravel to write directly to the file. The current method's only advantage is the potential to implement a reactive JavaScript facade, such as with AlpineJS. For now, this approach is acceptable. I'm not trying to start a debate at this moment; we can discuss those details later. I just thought it was worth noting somewhere.

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

Successfully merging this pull request may close these issues.

2 participants