Demo — sample data, nothing is saved or charged Signed in as Workspace owner Switch role Reset demo Plinthstack on digitalhorizon.it.com

Tenant isolation

What this request can see, and what happens when it reaches further

tenant_id = 1042 3

What this request can see

You are inside Quill & Ledger. The global scope adds tenant_id = 1042 to every query.

ModelQueryRowsFrom other tenants
MemberMember::count()90
ProjectProject::count()140
InvoiceInvoice::count()60
ApiTokenApiToken::count()20
ActivityEntryActivityEntry::count()370

Same account, other workspaces — different answers

QL

Quill & Ledger tenant_id 1042
9 members · 14 projects · 6 invoices

FC

Fernhill Clinics tenant_id 1017
37 members · 63 projects · 2 invoices

SF

Saltmarsh Freight tenant_id 1188
5 members · 6 projects · 0 invoices

tinker · tenant 1042waiting
// pick one of the four attempts above// each runs as Maya Okafor inside Quill & Ledger
php artisan test --testsuite=TenancyPASSED
Tests58 passed
Cross-tenant rows read0
Query without a tenantEmpty

The same attempts, kept as tests. How the scope is written · Open their invoice URL directly

Tenant scope on. Every query for this page ran with tenant_id = 1042 — rows read from other tenants: 0. Try to cross the boundary