spatie / laravel-slack-alerts

Quickly send a message to Slack
https://freek.dev/2172-a-package-to-quickly-send-slack-alerts-in-a-laravel-app
MIT License
281 stars 33 forks source link

Jobs table not found when using multi tenant system. #49

Closed jishadp closed 4 months ago

jishadp commented 4 months ago

Hi, I need to tell you that I am workign with multiple database, one database for parent users details which also include jobs.

Each user having different databsase and when they are loggedin I will change the conenction to "mysql_tenant".

I have two conenctions,

The slacklaert is performing when my connection is "mysql_tenant", but my jobs are in the "mysql" connection,

Now I am getting error like jobs table is not founf when running the SlackAlerts.

I am not able to switch the connection name for SlackAlerts.

Please give an option on config variables like "connection" which customise the job table connection.

Thank you.