1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 11:14:04 +00:00
Automatic multi-tenancy for Laravel. No code changes needed. https://tenancyforlaravel.com
Find a file
Abrar Ahmad 627233d07a
[4.x] Don't use onDeleteCascade in the migrations (#883)
* removed `cascade` on delete for domains

* removed only `onDelete` cascade

* keep impersonation migrations unchanged

* domains set null on delete

* Update 2019_09_15_000020_create_domains_table.php

* Added DeleteDomain Job while deleting tenant.

* Update assets/TenancyServiceProvider.stub.php

Co-authored-by: Samuel Štancl <samuel@archte.ch>

* renamed class

* Update DeleteDomains.php

* onDelete restrict

* revert nullable

* removed `shouldQueue` interface

* Update TenancyServiceProvider.stub.php

* fetch and delete domains individually

* Update DeleteDomains.php

* tests for `DeleteDomains` job

Co-authored-by: Samuel Štancl <samuel@archte.ch>
2022-07-20 13:02:33 +02:00
.github remove old versions from CI 2022-06-01 15:36:46 +02:00
art Update artwork 2020-06-09 15:36:47 +02:00
assets [4.x] Don't use onDeleteCascade in the migrations (#883) 2022-07-20 13:02:33 +02:00
src [4.x] Don't use onDeleteCascade in the migrations (#883) 2022-07-20 13:02:33 +02:00
tests [4.x] Don't use onDeleteCascade in the migrations (#883) 2022-07-20 13:02:33 +02:00
.gitattributes Rewrite cached resolver logic to allow for cache invalidation logic 2020-06-02 20:10:17 +02:00
.gitignore [4.x] Add tenant schema dump command (#807) 2022-06-01 16:12:59 +02:00
.styleci.yml risky: true 2020-08-03 14:40:54 +02:00
composer.json add phpunit dependency 2022-06-28 21:47:33 +02:00
CONTRIBUTING.md fix path prefixing 2022-03-23 20:48:55 +01:00
docker-compose.yml [4.x] Added support for Microsoft Sql Server (#715) 2022-06-23 13:04:53 +02:00
Dockerfile [4.x] Added support for Microsoft Sql Server (#715) 2022-06-23 13:04:53 +02:00
DONATIONS.md update md files 2020-06-08 22:42:13 +02:00
LICENSE Initial commit 2019-01-17 22:24:12 +01:00
phpunit.xml Updated some docker stuff (#409) 2020-05-22 18:09:07 +02:00
README.md Update README.md 2022-05-01 12:56:25 +02:00
SUPPORT.md Discord link 2022-06-13 19:16:35 +02:00
test vague first draft of v3. TenantModelTest is passing 2020-05-08 04:37:43 +02:00

Tenancy for Laravel logo

Laravel 9.x Latest Stable Version GitHub Actions CI status Donate

Tenancy for Laravel — stancl/tenancy

Automatic multi-tenancy for your Laravel app.

You won't have to change a thing in your application's code.

  • ✔️ No model traits to change database connection
  • ✔️ No replacing of Laravel classes (Cache, Storage, ...) with tenancy-aware classes
  • ✔️ Built-in tenant identification based on hostname (including second level domains)

Documentation

Documentation can be found here: https://tenancyforlaravel.com/docs/v3/

The repository with the documentation source code can be found here: stancl/tenancy-docs.

Need help?

Credits