leemason / tenantable Goto Github PK
View Code? Open in Web Editor NEWThe Laravel Tenantable package is designed to enable multi-tenancy based database connections on the fly.
Home Page: http://leemason.github.io/tenantable
License: MIT License
The Laravel Tenantable package is designed to enable multi-tenancy based database connections on the fly.
Home Page: http://leemason.github.io/tenantable
License: MIT License
Any plans for Laravel 5.4 5.5 5.6 support?
Hi,
I'm trying to store the queued events in the main connection (jobs table) while i'm in the tenant-connection. I've tried purging the tenant, so the main connection is established. However an error is triggered that the jobs table doesn't exist in the tenant database.
SQLSTATE[42S02]: Base table or view not found: 1146 Table '<tenant_database>.jobs' doesn't exist (SQL: insert into `jobs` (`queue`, `payload`....
Can you help me fixing this issue?
All the way up to a9ac829
Hello,
Why is the connection purged (disconnected/reconnected) during an http request ? Is it a concurrency issue ?
Thanks in advance for your help
francois
this isnt something the package can deal with itself, this is just a reference for users.
basically if you use this package and have multiple tenants on the same db and simply change the prefixes of the tables you CAN run into duplicate index name issues:
SQLSTATE[23000]: Integrity constraint violation: 1022 Can't write; duplicate key in table
This happens because the index name must be unique across the DATABASE, not the TABLE unfortunatley.
So unless you refactor all your index names to use the connection prefix you will be limited to not using indexes (not really an option). or splitting your tenants across multiple dbs.
Can I access the default database and tenant database at the same time?
How to use tenantable in localhost?
I create virtual hosts point to the same dir, but $resolver->getActiveTenant(); only return null.
It would be nice if there is an option to resolve tenants on subdomain only. Setting the main domain somewhere in the config and only set the subdomain in the database. This would be great for setting up multiple environments.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.