Support the ongoing development of Laravel.io →
Security Database Eloquent
Last updated 1 year ago.
0
Last updated 1 year ago.
0

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.

Last updated 1 year ago.
0

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.

Last updated 1 year ago.
0

Hello Could you please share a sample of how you do "before filter set client and set the current database to be used." ? To understand the mechanism ... Thanks a lot in advance francois

0

Sign in to participate in this thread!

Eventy

Your banner here too?

nabberuk nabberuk Joined 18 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.