Skip to main content
Back to packages
1,351 GitHub stars

spatie/laravel-multitenancy

View on GitHub

Description

Make your Laravel app usable by multiple tenants

This package can make a Laravel app tenant aware. The philosophy of this package is that it should only provide the bare essentials to enable multitenancy.

The package can determine which tenant should be the current tenant for the request. It also allows you to define what should happen when making a tenant the current one. It works for multitenancy projects that need to use one or multiple databases.

The package contains a lot of niceties such as making queued jobs tenant aware, making an artisan command run for each tenant, an easy way to set a connection on a model, and much more.

Related Content on Laravel Daily

Recent Courses on Laravel Daily