diff --git a/README.md b/README.md index 0c6459d0..587aab45 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,8 @@ You won't have to change a thing in your application's code.\* \* depending on how you use the filesystem. Everything else will work out of the box. -### [Documentation](https://tenancy.samuelstancl.me/docs) +### [Documentation](https://tenancy.samuelstancl.me/docs/v2/) -Documentation can be found here: https://tenancy.samuelstancl.me/docs +Documentation can be found here: https://tenancy.samuelstancl.me/docs/v2/ The repository with the documentation source code can be found here: [stancl/tenancy-docs](https://github.com/stancl/tenancy-docs). diff --git a/assets/config.php b/assets/config.php index 99f9b596..f8824f29 100644 --- a/assets/config.php +++ b/assets/config.php @@ -39,7 +39,7 @@ return [ 'cache' => [ 'tag_base' => 'tenant', ], - 'filesystem' => [ // https://tenancy.samuelstancl.me/docs/filesystem-tenancy/ + 'filesystem' => [ // https://tenancy.samuelstancl.me/docs/v2/filesystem-tenancy/ 'suffix_base' => 'tenant', // Disks which should be suffixed with the suffix_base + tenant id. 'disks' => [ @@ -83,7 +83,7 @@ return [ 'Stancl\Tenancy\Features\TenantRedirect', ], 'migrate_after_creation' => false, // run migrations after creating a tenant - 'delete_database_after_tenant_deletion' => false, // delete tenant's database after deleting him + 'delete_database_after_tenant_deletion' => false, // delete tenant's database after deleting the tenant 'queue_database_creation' => false, 'queue_database_deletion' => false, 'unique_id_generator' => 'Stancl\Tenancy\UUIDGenerator', diff --git a/src/Middleware/PreventAccessFromTenantDomains.php b/src/Middleware/PreventAccessFromTenantDomains.php index 7aa022a4..7e9adf04 100644 --- a/src/Middleware/PreventAccessFromTenantDomains.php +++ b/src/Middleware/PreventAccessFromTenantDomains.php @@ -6,6 +6,11 @@ namespace Stancl\Tenancy\Middleware; use Closure; + +/** + * Prevent access to non-tenant routes from domains that are not exempt from tenancy. + * = allow access to central routes only from routes listed in tenancy.exempt_routes + */ class PreventAccessFromTenantDomains { /**