feat: implement multi-tenancy and super admin impersonation with security banner

This commit is contained in:
jeremy bayse
2026-02-21 20:15:47 +01:00
parent a0e904d69d
commit 63e448ef22
31 changed files with 819 additions and 51 deletions

View File

@@ -24,7 +24,7 @@ return [
* `Spatie\Permission\Contracts\Role` contract.
*/
'role' => Spatie\Permission\Models\Role::class,
'role' => \App\Models\Role::class,
],
@@ -93,7 +93,7 @@ return [
* foreign key is other than `team_id`.
*/
'team_foreign_key' => 'team_id',
'team_foreign_key' => 'structure_id',
],
/*
@@ -131,7 +131,7 @@ return [
* (view the latest version of this package's migration file)
*/
'teams' => false,
'teams' => true,
/*
* The class to use to resolve the permissions team id