How to start and where to put GeneralSetting? #14
-
Thanks for the great package. When I read through the documentation, Normally Documentation will give suggestion where to create the file, but I can't see from the step, sorry for the beginner question but I just want to make sure I start it correctly. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In bigger application we have multiple contexts for each domain, so for example a But it is possible to put these files wherever you want, the above is more of a personal choice from the Spatie team. |
Beta Was this translation helpful? Give feedback.
In bigger application we have multiple contexts for each domain, so for example a
Blog
,User
. andInvoice
context. In those cases we put settings files in each context so for theBlog
context that would be:app/Context/Blog/Settings/BlogSettings.php
. In Smaller applications I would put them within theapp
directory so in your caseapp/Settings/GeneralSettings.php
.But it is possible to put these files wherever you want, the above is more of a personal choice from the Spatie team.