2017 © Pedro Peláez
 

library multi-tenant

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

image

trailblazersoftware/multi-tenant

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

  • Thursday, November 2, 2017
  • by ksidibe
  • Repository
  • 2 Watchers
  • 0 Stars
  • 746 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 16 % Grown

The README.md

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. 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., (*1)

Installation

To install, simply run the command below in your terminal., (*2)

composer require "trailblazersoftware/multi-tenant:dev-master", (*3)

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., (*4)

Publish The Config File

Run the following artisan command:, (*5)

php artisan vendor:publish --provider="Trailblazer\MultiTenant\MultiTenantServiceProvider", (*6)

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

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., (*8)

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

The Versions

02/11 2017

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

by Kolado Sidibe