mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 00:34:05 +00:00
fixed tests, remove method duplications, restore necessary inner classes
This commit is contained in:
parent
9d08334f48
commit
1166fe2a6e
15 changed files with 482 additions and 130 deletions
|
|
@ -22,6 +22,7 @@ use Stancl\Tenancy\Listeners\RevertToCentralContext;
|
|||
use Stancl\Tenancy\Middleware\InitializeTenancyByDomain;
|
||||
use Stancl\Tenancy\Middleware\InitializeTenancyByPath;
|
||||
use Stancl\Tenancy\Tests\Etc\Tenant;
|
||||
use Illuminate\Foundation\Auth\User as Authenticable;
|
||||
|
||||
uses(Stancl\Tenancy\Tests\TestCase::class);
|
||||
|
||||
|
|
@ -253,3 +254,15 @@ function getRoutes($loginRoute = true, $authGuard = 'web'): Closure
|
|||
});
|
||||
};
|
||||
}
|
||||
|
||||
class ImpersonationUser extends Authenticable
|
||||
{
|
||||
protected $guarded = [];
|
||||
protected $table = 'users';
|
||||
}
|
||||
|
||||
class AnotherImpersonationUser extends Authenticable
|
||||
{
|
||||
protected $guarded = [];
|
||||
protected $table = 'users';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue