mardi 30 août 2016

Queuing multi-tenant application in Laravel

I have a multi-tenant application built in Laravel 5.1. It uses one main database connection for storing users, roles, permissions, as well as jobs and failed_jobs. Additionally, every user has his own database.

I use a Job class for sending mail, and when it is executed, the following exception occurs:

[PDOException] SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected

The class uses tables from two db connections (the main connection, and the one associated with the current user).

Thanks in advance, any help is appreciated.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire