1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 14:34:04 +00:00

Disable all features by default

This commit is contained in:
Samuel Štancl 2019-10-04 22:10:02 +02:00
parent b66574b1ab
commit 24ce8f9454
2 changed files with 7 additions and 2 deletions

View file

@ -81,8 +81,9 @@ return [
// Features are classes that provide additional functionality // Features are classes that provide additional functionality
// not needed for tenancy to be bootstrapped. They are run // not needed for tenancy to be bootstrapped. They are run
// regardless of whether tenancy has been initialized. // regardless of whether tenancy has been initialized.
Stancl\Tenancy\Features\TelescopeTags::class,
Stancl\Tenancy\Features\TenantRedirect::class, // Stancl\Tenancy\Features\TelescopeTags::class,
// Stancl\Tenancy\Features\TenantRedirect::class,
// Stancl\Tenancy\Features\TenantConfig::class, // Stancl\Tenancy\Features\TenantConfig::class,
], ],
'storage_to_config_map' => [ // Used by the TenantConfig feature 'storage_to_config_map' => [ // Used by the TenantConfig feature

View file

@ -15,6 +15,10 @@ class TenantRedirectMacroTest extends TestCase
/** @test */ /** @test */
public function tenant_redirect_macro_replaces_only_the_hostname() public function tenant_redirect_macro_replaces_only_the_hostname()
{ {
config([
'tenancy.features' => ['Stancl\Tenancy\Features\TenantRedirect'],
]);
Route::get('/foobar', function () { Route::get('/foobar', function () {
return 'Foo'; return 'Foo';
})->name('home'); })->name('home');