Laravel/PHP Articles

Articles from Laravel/PHP sites on the web

Laravel/PHP Articles
Multi-tenancy is pretty common in web-projects – when you want to give records access only for users who created those records. This article will show you how to implement it in the most simple way, in single database. What We’re Creating HereImagine a web-project to manage Books, and every user may see only their own entered books. But also every book has origin country field from Country model, and that model needs to be accessible to everyone, without multi-tenancy. In general, the rule is simple: for those models that you want to be “multi-tenantable”, use the trait.

Sign Up For Our Newsletter

Each Week, We curate the top Laravel/PHP articles, jobs, events and More!

We'll send you a weekly email with the latest Laravel/PHP articles, jobs and events. Please review our Code of Conduct in the meantime. Talk to you soon!