PHPackages                             trailblazersoftware/multi-tenant - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. trailblazersoftware/multi-tenant

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

trailblazersoftware/multi-tenant
================================

A Laravel 5.5+ package to help manage multi-tenancy roles and permissions.

03.3kPHP

Since Aug 13Pushed 4y ago2 watchersCompare

[ Source](https://github.com/trailblazersoftware/laravel-multi-tenant-roles)[ Packagist](https://packagist.org/packages/trailblazersoftware/multi-tenant)[ RSS](/packages/trailblazersoftware-multi-tenant/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Multi-Tenant Roles
==========================

[](#laravel-multi-tenant-roles)

This Laravel 5.5+ package provides an implementation of roles and permissions in a multi-tenant application. It borrows a lot from [Entrust](https://github.com/Zizaco/entrust). Although all the Entrust functionalities are not yet implemented here, the roadmap includes doing so. The intend is for Laravel Multi-Tenant Roles to provide the following improvement (over Entrust):

- Multi-Tenancy "out of the box".
    -------------------------------

    [](#multi-tenancy-out-of-the-box)
- Localization. Being able to provide a display name and descriptions for a role or permission in whatever language your Laravel application supports.
    ----------------------------------------------------------------------------------------------------------------------------------------------------

    [](#localization-being-able-to-provide-a-display-name-and-descriptions-for-a-role-or-permission-in-whatever-language-your-laravel-application-supports)

Installation
============

[](#installation)

To install, simply run the command below in your terminal.

`composer require "trailblazersoftware/multi-tenant:dev-master"`

Setup
=====

[](#setup)

Multi Tenant uses Laravel's Auto-Discovery feature to register its Service Provider, and allow you to run its migration and publish its config file.

Publish The Config File
-----------------------

[](#publish-the-config-file)

Run the following artisan command:

`php artisan vendor:publish --provider="Trailblazer\MultiTenant\MultiTenantServiceProvider"`

Or, you can type even less by simply typing `php artisan vendor:publish` and selecting the number corresponding to `Trailblazer\MultiTenant\MultiTenantServiceProvider`

Update The Config File
----------------------

[](#update-the-config-file)

After running the `vendor:publish` command, you'll see a new config file `MultiTenant.php` in your `projects_root/config` directory.

   Config Key Default Description Required     'role' 'App\\Models\\Users\\Role' The Role model Yes   'roles\_table' 'roles' The table where role models are stored Yes   'users\_table' 'users' The table where user models are stored Yes   'user\_key' 'id' The primary key for the user model Yes   'role\_user\_table' 'role\_user' The pivot table where users' roles are stored Yes   'role\_user\_table' 'role\_user' The pivot table where users' roles are stored Yes   'permission' 'role\_user' The pivot table where users' roles are stored Yes  \# Work in progress

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3746660?v=4)[Kola](/maintainers/ksidibe)[@ksidibe](https://github.com/ksidibe)

---

Top Contributors

[![ksidibe](https://avatars.githubusercontent.com/u/3746660?v=4)](https://github.com/ksidibe "ksidibe (14 commits)")

### Embed Badge

![Health badge](/badges/trailblazersoftware-multi-tenant/health.svg)

```
[![Health](https://phpackages.com/badges/trailblazersoftware-multi-tenant/health.svg)](https://phpackages.com/packages/trailblazersoftware-multi-tenant)
```

###  Alternatives

[vitalybaev/laravel5-dkim

Laravel 5/6 package for signing outgoing messages with DKIM.

3163.1k](/packages/vitalybaev-laravel5-dkim)[firemultimedia/mautic-multi-captcha-bundle

This plugin brings Google's reCAPTCHA, hCaptcha, and Cloudflare Turnstile integration to mautic.

151.4k](/packages/firemultimedia-mautic-multi-captcha-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
