Try reading this http://culttt.com/2014/03/31/multi-tenancy-laravel-4/
nice series of posts on that site, thanks for sharing it. I think i might have to start at the beginning though as reading through the one on multi-tenancy confused me a fair bit.
I don't think it's as easy as i thought it was going to be.
Just an opionion:
I have a large booking system that uses multiple databases. I've chosen to in the before filter set client and set the current database to be used. That way, I don't need to worry about ever having to remember client_id in all my queries, joins, migration headaches, etc etc... And I can easily clean out a tenant by wiping their database.
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us