Skip to content

Instantly share code, notes, and snippets.

@ashokgelal
Created December 16, 2017 18:32
Show Gist options
  • Save ashokgelal/784e5ab832ed9c72b3ea7e4554e05aab to your computer and use it in GitHub Desktop.
Save ashokgelal/784e5ab832ed9c72b3ea7e4554e05aab to your computer and use it in GitHub Desktop.
We have to make Role model be aware of both permission management and multi-tenancy
<?php
namespace App;
use Hyn\Tenancy\Traits\UsesTenantConnection;
use Spatie\Permission\Models\Role as BaseRole;
class Role extends BaseRole
{
use UsesTenantConnection;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment