Replies: 2 comments
-
As we see in the docs, each repository may have its model set: /*
* Settings will be stored and loaded from these repositories.
*/
'repositories' => [
'database' => [
'type' => Spatie\LaravelSettings\SettingsRepositories\DatabaseSettingsRepository::class,
'model' => null,
'table' => null,
'connection' => null,
],
// ... The database repository has three optional configuration options:
- `model` the Eloquent model used to load/save properties to the database... Just to clarify, is that an option? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Let me try this then get back to you |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to use a custom model for Settings?
I'm using this package in a Filament setup with multitenancy, and would like to apply some lifecyscle hooks,
Is this something that can be done, if so, how do I go about it?
Beta Was this translation helpful? Give feedback.
All reactions