I'm developing a multitenant application using Laravel. I've read different blogs, posts, sites for this and I decided to do it with a single database.
So, I know that I only need to filter every query with the tenant_id and that's it! But if I do it from every query, probably someday there'll be an error and I don't want to cause any information security issue for my tenants.
I read, probably, an old article for it, http://ift.tt/1JlTkWR, and I found many concepts that I still don't understand because I'm new to Laravel.
Is this approach still the best for do it? Or has Laravel now its own solution to do it?
I like something similar to this: http://ift.tt/1M1QeIl but from Eloquent. How can I do this?
Thanks.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire