mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 09:34:04 +00:00
Cleanup after implementing impersonation
This commit is contained in:
parent
10a5b80d44
commit
c8f9a82745
4 changed files with 6 additions and 7 deletions
|
|
@ -47,12 +47,6 @@ return [
|
|||
* Database tenancy config. Used by DatabaseTenancyBootstrapper.
|
||||
*/
|
||||
'database' => [
|
||||
/**
|
||||
* The connection that will be used as a template for the dynamically created tenant connection.
|
||||
* Set to null to use the default connection.
|
||||
*/
|
||||
'template_connection' => null,
|
||||
|
||||
/**
|
||||
* Tenant database names are created like this:
|
||||
* prefix + tenant_id + suffix.
|
||||
|
|
@ -177,6 +171,7 @@ return [
|
|||
* understand which ones you want to enable.
|
||||
*/
|
||||
'features' => [
|
||||
// Stancl\Tenancy\Features\UserImpersonation::class,
|
||||
// Stancl\Tenancy\Features\TenantConfig::class, // https://tenancy.samuelstancl.me/docs/v2/features/tenant-config/
|
||||
// Stancl\Tenancy\Features\CrossDomainRedirect::class, // https://tenancy.samuelstancl.me/docs/v2/features/tenant-redirect/
|
||||
],
|
||||
|
|
|
|||
|
|
@ -87,6 +87,10 @@ class TenancyServiceProvider extends ServiceProvider
|
|||
__DIR__ . '/../assets/migrations/' => database_path('migrations'),
|
||||
], 'migrations');
|
||||
|
||||
$this->publishes([
|
||||
__DIR__ . '/../assets/2020_05_15_000010_create_tenant_user_impersonation_tokens_table.php' => database_path('migrations'),
|
||||
], 'impersonation-migrations');
|
||||
|
||||
$this->publishes([
|
||||
__DIR__ . '/../assets/TenancyServiceProvider.stub.php' => app_path('Providers/TenancyServiceProvider.php'),
|
||||
], 'migrations');
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ class TenantUserImpersonationTest extends TestCase
|
|||
parent::setUp();
|
||||
|
||||
$this->artisan('migrate', [
|
||||
'--path' => __DIR__ . '/../assets/2019_09_15_000020_create_tenant_user_impersonation_tokens_table.php',
|
||||
'--path' => __DIR__ . '/../assets/2020_05_15_000010_create_tenant_user_impersonation_tokens_table.php',
|
||||
'--realpath' => true,
|
||||
])->assertExitCode(0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue