if config is not present take from a general setting #83
Unanswered
cristian-araujo
asked this question in
Q&A
Replies: 1 comment
-
At the moment we don't have support for something like the global settings you describe, personally, I would create a repository with both settings classes within the constructor and getters for all the properties that uses the mechanism of your code example with Laravel Models. As for the problem with app(GeneralSetting::class)->site_name Or when you call resolve(GeneralSetting::class)->toArray() |
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
-
Is it possible to create global configurations? for example if I have 2 configuration files:
GeneralSettings
RegistrationSettings
I have email configurations in both but if email configuration in registrationsettings is not completed, I need obtain from generalsettings, is this possible?
from RegistrationSettings, something similar to the models:
Another thing is that this does not work for me and I do not know why
app (GeneralSetting::class)
it return
Beta Was this translation helpful? Give feedback.
All reactions