Skip to content

Settings with Tenancy for Laravel #39

Answered by rubenvanassche
xemedia asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @xemedia,

We had the same problem in the project this package was built for. Though we're using our own spatie/multitenancy package I think the setup is the same. Within the config of the package you can set a model that will be used for stroring the settings (https://github.com/spatie/laravel-settings#repostitories). You should in a multi-tenancy setup create your own model which extends from the package model. In this model you can overwrite the connection to the correct database that should be used for the tenant.

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
8 replies
@rubenvanassche
Comment options

@vanhooff
Comment options

@atapatel
Comment options

@vanhooff
Comment options

@ousid
Comment options

Answer selected by xemedia
Comment options

You must be logged in to vote
3 replies
@rubenvanassche
Comment options

@rronik
Comment options

@rubenvanassche
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants