mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 08:24:04 +00:00
Add comments
This commit is contained in:
parent
88fbd9779d
commit
7229691977
3 changed files with 9 additions and 4 deletions
|
|
@ -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).
|
||||||
|
|
|
||||||
|
|
@ -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',
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue