trailblazersoftware / multi-tenant
A Laravel 5.5+ package to help manage multi-tenancy roles and permissions.
Installs: 3 340
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=7.0.0
- laravel/framework: >=5.8
This package is auto-updated.
Last update: 2025-01-13 13:59:55 UTC
README
This Laravel 5.5+ package provides an implementation of roles and permissions in a multi-tenant application. It borrows a lot from 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".
-
Localization. Being able to provide a display name and descriptions for a role or permission in whatever language your Laravel application supports.
Installation
To install, simply run the command below in your terminal.
composer require "trailblazersoftware/multi-tenant:dev-master"
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
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
After running the vendor:publish
command, you'll see a new config file MultiTenant.php
in your projects_root/config
directory.