A flexible multi-tenancy package for Laravel. Single & multi-database tenancy, automatic & manual mode, event-based architecture. Integrates perfectly with other packages. stancl/tenancy is a flexible multi-tenancy Laravel package that comes with lots of features out-of-the-box and doesn't stand in your way when you need anything custom. Instead of forcing you to change how you write your code, the package by default bootstraps tenancy automatically, in the background. Database connections are switched, caches are separated, filesystems are prefixed, etc. Out of the box, the package makes the following things tenant-aware: databases, caches, filesystems, queues, redis stores. This means that if you've already written your app and are looking to make it multi-tenant, you don't have to change anything.

Features

  • Automatic data separation
  • Integrates with other packages
  • Fully testable
  • Extreme flexibility
  • Event-based architecture
  • Single or multi-database tenancy
  • Manual tenancy
  • Shared users between tenants
  • User impersonation
  • Works with any database

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

MIT License

Follow Tenancy for Laravel

Tenancy for Laravel Web Site

You Might Also Like
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Tenancy for Laravel!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Frameworks

Registered

2024-04-04