mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 18:24:04 +00:00
* Add SingleDomainTenant * Add logic for single domain tenants * Test that the single domain approach works (wip) * Fix code style (php-cs-fixer) * Simplify SubdomainTest tests * Add single domain tenant conditions to DomainTenantResolver * Test single domain tenants in resolver test * Fix test name typo * Improve runUsingBothDomainApproaches() * Delete extra tenancy()->end() * Test early identification with both domain approaches * Test that things work with both domain approaches in the rest of the tests * Fix falsely passing test * Fix PHPStan errors * Change SingleDomainTenant to a contract, add SingleDomainTenant test model * Fix TenantList domainsCLI() * Improve setCurrentDomain() check * Fix code style (php-cs-fixer) * Add annotation * Revert getCustomColumns() change * Add comments * Use the domain returned by the closure in runUsingBoth..() * Delete `migrate` from test * Improve test names * Use variable instead of repeating the same string multiple times * Update comment * Add comment * Clean up PreventAccess test * Don't assign domain to a single-use variable * Update comments * Uncomment datasets * Add todo * Fix user impersonation test * Don't specify tenant key when creating tenant in runUsingBoth..() * Improve universal route test * Improve `runUsingBothDomainApproaches()` * Add tests specific to single domain tenants * Get rid of the runUsingBothDomainApproaches method * Add test file specific for the single domain tenant feature * Rename test * Make getCustomColumns() function static * Positiopn datasets differently * Fix early id test * Add prevent MW to route MW in test * Fix single domain tenant tests * Delete SingleDomainTenantTest (CI testing) * Add the test file back * TUrn APP_DEBUG on temporarily * Turn debug off * Try creating tenant with non-unique domain (CI testing) * dd duplicate tenant records * Revert testing change * Make SingleDomainTenant not extend base tenant (VirtualColumn issues) * Fix early id test * add todo * Use dev-master stancl/virtualcolumn * Make SingleDomainTenant extend the tenant base model * remove todo * Clean up EarlyIdentificationTest changes * Finish test file cleanup * Fix test * improve test --------- Co-authored-by: PHP CS Fixer <phpcsfixer@example.com> Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
81 lines
2.4 KiB
JSON
81 lines
2.4 KiB
JSON
{
|
|
"name": "stancl/tenancy",
|
|
"description": "Automatic multi-tenancy for your Laravel application.",
|
|
"keywords": [
|
|
"laravel",
|
|
"multi-tenancy",
|
|
"multi-database",
|
|
"tenancy"
|
|
],
|
|
"license": "MIT",
|
|
"authors": [
|
|
{
|
|
"name": "Samuel Štancl",
|
|
"email": "samuel@archte.ch"
|
|
}
|
|
],
|
|
"require": {
|
|
"php": "^8.2",
|
|
"ext-json": "*",
|
|
"illuminate/support": "^10.1",
|
|
"facade/ignition-contracts": "^1.0.2",
|
|
"spatie/ignition": "^1.4",
|
|
"ramsey/uuid": "^4.7.3",
|
|
"stancl/jobpipeline": "2.0.0-rc1",
|
|
"stancl/virtualcolumn": "dev-master",
|
|
"spatie/invade": "^1.1"
|
|
},
|
|
"require-dev": {
|
|
"laravel/framework": "^10.1",
|
|
"orchestra/testbench": "^8.0",
|
|
"league/flysystem-aws-s3-v3": "^3.12.2",
|
|
"doctrine/dbal": "^3.6.0",
|
|
"spatie/valuestore": "^1.2.5",
|
|
"pestphp/pest": "^1.21",
|
|
"nunomaduro/larastan": "^2.4",
|
|
"spatie/invade": "^1.1"
|
|
},
|
|
"autoload": {
|
|
"psr-4": {
|
|
"Stancl\\Tenancy\\": "src/"
|
|
},
|
|
"files": [
|
|
"src/helpers.php"
|
|
]
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"Stancl\\Tenancy\\Tests\\": "tests/"
|
|
}
|
|
},
|
|
"extra": {
|
|
"laravel": {
|
|
"providers": [
|
|
"Stancl\\Tenancy\\TenancyServiceProvider"
|
|
],
|
|
"aliases": {
|
|
"Tenancy": "Stancl\\Tenancy\\Facades\\Tenancy",
|
|
"GlobalCache": "Stancl\\Tenancy\\Facades\\GlobalCache"
|
|
}
|
|
}
|
|
},
|
|
"scripts": {
|
|
"docker-up": "PHP_VERSION=8.2 docker-compose up -d",
|
|
"docker-down": "PHP_VERSION=8.2 docker-compose down",
|
|
"docker-rebuild": "PHP_VERSION=8.2 docker-compose up -d --no-deps --build",
|
|
"docker-m1": "ln -s docker-compose-m1.override.yml docker-compose.override.yml",
|
|
"coverage": "open coverage/phpunit/html/index.html",
|
|
"phpstan": "vendor/bin/phpstan",
|
|
"phpstan-pro": "vendor/bin/phpstan --pro",
|
|
"cs": "php-cs-fixer fix --config=.php-cs-fixer.php",
|
|
"test": "PHP_VERSION=8.2 ./test --no-coverage",
|
|
"test-full": "PHP_VERSION=8.2 ./test"
|
|
},
|
|
"minimum-stability": "dev",
|
|
"prefer-stable": true,
|
|
"config": {
|
|
"allow-plugins": {
|
|
"pestphp/pest-plugin": true
|
|
}
|
|
}
|
|
}
|