mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 12:54:05 +00:00
Disable all features by default
This commit is contained in:
parent
b66574b1ab
commit
24ce8f9454
2 changed files with 7 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue