Automatically save settings for models using HasSettingsTable #125
neverything
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In a project, we are using
HasSettingsTable
quite a bit for multiple models. Having to implement a saving routine for the settings can be cumbersome. Wouldn't it be useful to have aTrait
to overwrite thesave
method on the model and save the settings in themodel_settings
table?So in your model instead of using
HasSettingsTable
useHandleSaveForHasTableSettings
. Happy for any feedback as I might be doing it wrong or could improve upon this.Beta Was this translation helpful? Give feedback.
All reactions