mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 12:54:05 +00:00
Home route -> home url
This commit is contained in:
parent
92618e09a5
commit
4a17992957
2 changed files with 2 additions and 2 deletions
|
|
@ -82,7 +82,7 @@ return [
|
||||||
'Stancl\Tenancy\Features\TelescopeTags',
|
'Stancl\Tenancy\Features\TelescopeTags',
|
||||||
'Stancl\Tenancy\Features\TenantRedirect',
|
'Stancl\Tenancy\Features\TenantRedirect',
|
||||||
],
|
],
|
||||||
'home_route' => '/app',
|
'home_url' => '/app',
|
||||||
'migrate_after_creation' => false, // run migrations after creating a tenant
|
'migrate_after_creation' => false, // run migrations after creating a tenant
|
||||||
'delete_database_after_tenant_deletion' => false, // delete the tenant's database after deleting the tenant
|
'delete_database_after_tenant_deletion' => false, // delete the tenant's database after deleting the tenant
|
||||||
'queue_database_creation' => false,
|
'queue_database_creation' => false,
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ class PreventAccessFromTenantDomains
|
||||||
$is_a_tenant_route = in_array('tenancy', $request->route()->middleware());
|
$is_a_tenant_route = in_array('tenancy', $request->route()->middleware());
|
||||||
|
|
||||||
if ($is_a_tenant_domain && ! $is_a_tenant_route) { // accessing web routes from tenant domains
|
if ($is_a_tenant_domain && ! $is_a_tenant_route) { // accessing web routes from tenant domains
|
||||||
return redirect(config('tenancy.home_route'));
|
return redirect(config('tenancy.home_url'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($is_an_exempt_domain && $is_a_tenant_route) { // accessing tenant routes on web domains
|
if ($is_an_exempt_domain && $is_a_tenant_route) { // accessing tenant routes on web domains
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue