Code Explainers
Code explainers tagged #multi-tenancy
php
<?php namespace App\Providers;
Subdomain multi-tenancy routing in Laravel
multi-tenancy
service-container
route-binding
Advanced
7 steps
php
<?php namespace App\Http\Middleware;
Resolving the current team in Laravel middleware
middleware
multi-tenancy
cookies
Intermediate
8 steps
php
<?php namespace App\Services;
Caching per-tenant settings in Laravel
caching
multi-tenancy
dependency-injection
Intermediate
7 steps
go
package theme import ( "fmt"
Per-tenant HTML templates with Gin's renderer
multi-tenancy
concurrency
html-templates
Advanced
8 steps
java
@Entity @Table(name = "invoices") @FilterDef(name = "tenantFilter", parameters = @ParamDef(name = "tenantId", type = String.class)) @Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
Multi-tenant row filtering with Hibernate in Spring
multi-tenancy
hibernate filters
request interceptor
Advanced
7 steps
rust
use std::sync::Arc; use axum::{ body::Body, extract::{Extension, State},
Passing per-request context through Axum middleware
middleware
request-context
dependency-injection
Intermediate
8 steps
php
<?php namespace App\Services;
Caching tenant dashboard metrics in Laravel
caching
multi-tenancy
aggregation
Intermediate
7 steps
php
<?php namespace App\Models\Scopes;
How a tenant global scope works in Laravel
multi-tenancy
global-scope
query-builder
Intermediate
5 steps
typescript
import { CACHE_MANAGER, CacheInterceptor, } from '@nestjs/cache-manager';
A tenant-aware HTTP cache in NestJS
caching
interceptors
multi-tenancy
Intermediate
7 steps