Samuel Štancl
6f4b9f486c
Bootstrapper tests
2020-05-11 03:37:47 +02:00
Samuel Štancl
73fc525126
Automatic mode
2020-05-10 23:47:11 +02:00
Samuel Štancl
2492345280
Add methods to Tenant contract
2020-05-10 20:20:44 +02:00
Samuel Štancl
494d274798
Finish path identification - configurability & exception handling
2020-05-10 20:16:08 +02:00
Samuel Štancl
f328fc9c08
Combined subdomain/domain identification
2020-05-10 19:30:01 +02:00
Samuel Štancl
8ea4940f34
Identification middleware & tests
2020-05-10 05:47:27 +02:00
Samuel Štancl
5e6d82be57
path identification wip
2020-05-09 03:56:41 +02:00
Samuel Štancl
a602cec940
Fix event listener tests, improve domain logic
2020-05-09 02:49:08 +02:00
Samuel Štancl
e1a4054743
Domain model & resolver test
2020-05-08 18:16:18 +02:00
Samuel Štancl
08ed5084d5
JobPipeline now works fully
2020-05-08 16:57:14 +02:00
Samuel Štancl
7a2e6bb13e
JobPipeline tests
2020-05-08 05:12:46 +02:00
Samuel Štancl
bd9aad229b
vague first draft of v3. TenantModelTest is passing
2020-05-08 04:37:43 +02:00
Samuel Štancl
c2c90ff755
[3.x] Use static properties instead of config for features ( #391 )
...
* Use static properites instead of config for features
* update tests
2020-05-03 18:12:40 +02:00
Samuel Štancl
3bb2759fe2
[3.x] DB users ( #382 )
...
* Initial draft
* Apply fixes from StyleCI
* Use CI on master branch too
* Pass correct argument to queued DB creators/deleters
* Apply fixes from StyleCI
* Remove new interface from MySQLDBManager
* Make phpunit run
* Apply fixes from StyleCI
* Fix static property
* Default databaseName
* Use database transactions for creating users & granting permissions
* Apply fixes from StyleCI
* Get old tests to pass
* Apply fixes from StyleCI
* Add tests for PermissionControlledMySQLDatabaseManager
* Apply fixes from StyleCI
* Write test for extra config, fix bug with extra config
* Apply fixes from StyleCI
2020-05-03 18:12:27 +02:00
Samuel Štancl
60665517a0
[v3] Rename tenant redirect macro ( #389 )
...
* [v3] Rename tenant redirect macro
* update tests
2020-05-03 17:59:59 +02:00
Samuel Štancl
5972364075
[3.x] Rename facades ( #387 )
...
* Remove Facade suffix from facades, fix #386
* Apply fixes from StyleCI
* Fix facade test
2020-05-03 17:59:35 +02:00
Josh
d990281309
Fix for Initialized being called as function error ( #373 )
...
Co-authored-by: Josh Young <josh@vertogroup.com.au>
2020-04-27 16:04:35 +02:00
Samuel Štancl
03e21621a0
Merge branch '2.x' of github.com:stancl/tenancy into 2.x
2020-04-25 01:30:40 +02:00
Samuel Štancl
8e1cfa5ae0
Make central route 404 in PreventAccess mw customizable
2020-04-25 01:30:27 +02:00
Samuel Štancl
94e647c952
Return $tags when route is empty
2020-04-24 04:10:25 +02:00
Samuel Štancl
e363456497
Fix #367 , make seeder respect --force ( #368 )
2020-04-23 20:20:54 +02:00
Samuel Štancl
5947f14484
Add tenancy()->initialized() check
2020-04-23 20:15:08 +02:00
Samuel Štancl
56903d20bf
Use Telescope tags on universal routes too - fix #346
2020-04-23 19:08:54 +02:00
Samuel Štancl
cb6661210f
Make sure an int exit code is always returned
2020-04-22 22:31:51 +02:00
Jona Goldman
a99e8ac341
Fix getTenantIdByDomain() return type ( #350 )
2020-04-11 01:57:27 +02:00
Samuel Štancl
b441d789b6
Pass $request and $next to onFail closures
2020-04-06 15:15:52 +02:00
Samuel Štancl
4f5ef6fc56
Return the result of onFail closures in middleware
2020-04-06 11:14:05 +02:00
Samuel Štancl
5dc80473d3
[2.3.1] Fix exit codes in TenantAwareCommand ( #336 )
...
* Fix exit codes in TenantAwareCommand
* Cast result to int
* Assert exit code 0
2020-03-30 21:09:58 +02:00
Samuel Štancl
245d998d59
Merge branch '2.x' of github.com:stancl/tenancy into 2.x
2020-03-24 15:14:27 +01:00
Samuel Štancl
61785128a8
Don't override CLI params in tenants:seed ( fixes #329 )
2020-03-24 15:14:20 +01:00
stancl
a649f9f00e
Apply fixes from StyleCI
2020-03-24 14:02:38 +00:00
Samuel Štancl
df99e3e711
Check that the tenant database can be created only if it should be created
2020-03-24 15:02:23 +01:00
Devon Mather
cf339a5e82
Add return value to execute method ( #333 )
...
* Add command for test
* Write test to verify issue
* Make test pass
2020-03-21 02:05:17 +01:00
Samuel Štancl
30bab68b6a
Laravel 7 support ( #304 )
...
* Laravel 7 support
* Remove language from travis.yml
* Fix travis.yml
* Consistent indentation in travis.yml
* Use dev-master for phpcov
* Cleanup
* switch up envs
* verify both laravel versions are used
* 6 -> 7
* Fix travis yml
* Use stable phpcov
* Different installation for Laravel 7
* Indentation
* Fix dockerfile
* Fix indentation
* Fix tests
* Remove fail() calls
2020-03-17 18:47:24 +01:00
Samuel Štancl
526f0826a4
Use seeder params in tenants:seed instead of just the automatic seeder ( #317 )
...
* Use seeder params in tenants:seed instead of just the automatic seeder
* Left trim - from option names
* Use no seeder params for tests
2020-03-17 15:59:45 +01:00
Samuel Štancl
776af4643c
Make null falsey for cache config because config is not merged recursively
2020-03-17 15:30:24 +01:00
Samuel Štancl
f6115d590a
[2.3.0] More identification middleware ( #323 )
...
* Added request data identification middleware (#207 )
* Added request data identification middleware
* Fixed styling
* Changed to Illuminate request instead of helper
* Enabled header and querystring customisation
Co-authored-by: Jesper Jacobsen <joj@webshipper.com>
* Apply fixes from StyleCI
* Use constructor parameter instead of config
* Add tests
* Apply fixes from StyleCI
Co-authored-by: JapSeyz <JapSeyz@JapSeyz.com>
Co-authored-by: Jesper Jacobsen <joj@webshipper.com>
2020-03-17 00:02:57 +01:00
Samuel Štancl
c7c6a7fec8
[2.3.0] Cached tenant lookup ( #316 )
...
* Begin work on cached lookup
* Apply fixes from StyleCI
* wip
* wip cache invalidation
* Apply fixes from StyleCI
* Finish cache invalidation
* Apply fixes from StyleCI
* Remove config from TestCase
* Enable cache in the single test file
* Separate data & domains logic
* Apply fixes from StyleCI
* wip
* Apply fixes from StyleCI
2020-03-14 19:52:35 +01:00
Samuel Štancl
d0bd8f2ad8
Force migrate when running MigrateFresh
2020-03-10 21:33:25 +01:00
Noor Adiana
d0023c482a
Add support for postgres schema ( #237 )
...
* Add support for postgres schema
* wip
* Apply fixes from StyleCI
* revert to db as default for pgsql
* Move separate_by to database
* Fixing testing
* Fixing style
* Reverted change
* Store string instead of Connection instance
* Remove use statement
* Add use statement for DB facade
* mysql -> pgsql
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
2020-03-10 20:15:07 +01:00
Samuel Štancl
e02bd3927a
Single-line docblock
2020-03-08 14:57:18 +01:00
Samuel Štancl
292b7acd16
Make asset tenancy optional ( #300 )
2020-02-26 09:14:40 +01:00
Samuel Štancl
98ce0ee294
Make DB creation optional ( #299 )
2020-02-26 08:49:08 +01:00
Sean Taylor
5bb743f73d
Reinitialize tenancy for queued jobs if tenant id has changed ( #276 )
...
* Reinitialize tenancy for queued jobs if tenant id has changed
* Refactor condition logic for better readability
2020-02-22 13:58:30 +01:00
curious-jim
06ee1ff0e2
Migration paths ( #268 )
...
* allow multiple paths for tenant migrations
* tests: allow multiple paths for tenant migrations
* Update tests/CommandsTest.php
Co-Authored-By: Samuel Štancl <samuel.stancl@gmail.com>
* Update src/Traits/DealsWithMigrations.php
Co-Authored-By: Samuel Štancl <samuel.stancl@gmail.com>
* Update tests/CommandsTest.php
Co-Authored-By: Samuel Štancl <samuel.stancl@gmail.com>
* Update src/Traits/DealsWithMigrations.php
Co-Authored-By: Samuel Štancl <samuel.stancl@gmail.com>
* Update tests/TestCase.php
Co-Authored-By: Samuel Štancl <samuel.stancl@gmail.com>
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
2020-02-16 12:10:50 +01:00
Samuel Štancl
95ee295da1
Fix PDO serialization exception ( #289 )
...
* Fix PDO serialization exception when queueing tenant creation
* Apply fixes from StyleCI
* Fix $this->database() calls
2020-02-10 16:04:40 +01:00
Samuel Štancl
6ad1a6639f
Set $persisted in TenantManager::createTenant() ( #272 )
...
* Set $persisted in TenantManager::createTenant()
* Apply fixes from StyleCI
2020-01-19 12:08:16 +01:00
Samuel Štancl
5ebb68e860
Fix issue related to closure middleware
2019-12-26 20:28:29 +01:00
Samuel Štancl
fed8c0f9d1
[2.2.4] [WIP] Respect custom connections when creating database ( #244 )
...
* Add TenantDatabaseManager::setConnection()
* Apply fixes from StyleCI
2019-12-11 22:16:25 +01:00
Jess Johannessen
5145b1f13e
Added support for migration parameters ( #243 )
2019-12-10 16:56:51 +01:00