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

Add comments

This commit is contained in:
Samuel Štancl 2019-09-21 23:53:23 +02:00
parent 88fbd9779d
commit 7229691977
3 changed files with 9 additions and 4 deletions

View file

@ -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. \* 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). The repository with the documentation source code can be found here: [stancl/tenancy-docs](https://github.com/stancl/tenancy-docs).

View file

@ -39,7 +39,7 @@ return [
'cache' => [ 'cache' => [
'tag_base' => 'tenant', 'tag_base' => 'tenant',
], ],
'filesystem' => [ // https://tenancy.samuelstancl.me/docs/filesystem-tenancy/ 'filesystem' => [ // https://tenancy.samuelstancl.me/docs/v2/filesystem-tenancy/
'suffix_base' => 'tenant', 'suffix_base' => 'tenant',
// Disks which should be suffixed with the suffix_base + tenant id. // Disks which should be suffixed with the suffix_base + tenant id.
'disks' => [ 'disks' => [
@ -83,7 +83,7 @@ return [
'Stancl\Tenancy\Features\TenantRedirect', 'Stancl\Tenancy\Features\TenantRedirect',
], ],
'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 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_creation' => false,
'queue_database_deletion' => false, 'queue_database_deletion' => false,
'unique_id_generator' => 'Stancl\Tenancy\UUIDGenerator', 'unique_id_generator' => 'Stancl\Tenancy\UUIDGenerator',

View file

@ -6,6 +6,11 @@ namespace Stancl\Tenancy\Middleware;
use Closure; 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 class PreventAccessFromTenantDomains
{ {
/** /**