cachethq / core

🚦 The core of Cachet, the open-source status page system.
https://cachethq.io
MIT License
101 stars 20 forks source link

Laravel Settings #53

Closed jbrooksuk closed 5 months ago

jbrooksuk commented 5 months ago

Closes #32

This PR introduces Spatie's Laravel Settings package to handle Cachet's settings. I was initially hesitant to this, but I think it'll provide us with a few benefits:

  1. Strongly-typed settings.
  2. Filament integration.
  3. Option for caching.

As part of the PR, I've also created a migration to convert the existing settings into new ones. Afterwards, we'll create any setting records that were not previously stored.

[!IMPORTANT] This PR does not implement or configure all available settings. I wanted to get this PR merged as-is so that we're able to push forward elsewhere.

Furthermore, there are a few settings that will no longer be supported; analytics and mail. For analytic snippets, you should provide the script in the Custom Header settings. Mail settings should be configured in .env.