Tenant database #85
Unanswered
wdandrewjames
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using the Spatie Multi-tenancy package with with this package. I am trying to tell the webhook that the tenant database is where the 'webhook_calls' table lives, making it tenant aware. However it is looking in the landlord database. Normally I would just use the
Spatie\Multitenancy\Models\Concerns\UsesTenantConnection
on the model, but this isn't working. I see this is in the config:/* * The classname of the model to be used. The class should equal or extend * Spatie\StripeWebhooks\ProcessStripeWebhookJob. */ 'model' => \Spatie\StripeWebhooks\ProcessStripeWebhookJob::class,
But creating a new class which extends the
ProcessStripeWebhookJob
and uses theUsesTenantConnection
doesn't seem to work. I still get an error telling me that the database table 'webhook_calls' doesn't exist, because it is looking on the landlord database.I have made this work by editing the
Spatie\WebhookClient\Models\WebhookCall
class andUsesTenantConnection
, but I don't want to start editing vendor files.I may be overlooking something really simple here, but any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions