laravel-multi-tenancy
Laravel Multi-Tenancy
Multi-tenancy separates application logic into central (non-tenant) and tenanted (tenant-specific) contexts.
Related guides:
- tenancy-testing.md - Testing multi-tenant features
- Actions - Central vs Tenanted action organization
- Models - Model organization
- structure.md - Directory organization
Philosophy
Multi-tenancy provides:
- Clear separation between central and tenant contexts
- Database isolation with separate databases per tenant
- Automatic scoping of queries to current tenant
- Context awareness through helper classes
- Queue integration with tenant context preservation
More from leeovery/agentic-skills
laravel-quality
Code quality tooling with PHPStan, Pint, and strict types. Use when configuring or running static analysis, code style, or linting.
26laravel-testing
Comprehensive testing patterns with Pest. Use when writing or modifying tests, mocking, factories, or test patterns.
25laravel-value-objects
Immutable value objects for domain values. Use when creating or modifying value objects like money, coordinates, or other domain primitives.
22laravel-actions
Action-oriented architecture for Laravel — invokable classes containing domain logic. Use when creating or modifying actions, business logic, or domain operations.
22laravel-packages
Package development and extraction of reusable code. Use when creating, extracting, or modifying composer packages.
21laravel-services
Service layer for external API integration using manager pattern and Saloon. Use when integrating external APIs or third-party services.
21