1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 09:34:04 +00:00
Commit graph

247 commits

Author SHA1 Message Date
stancl
dbc77a110e Apply fixes from StyleCI 2020-07-06 12:45:10 +00:00
Samuel Štancl
f483d0b8cf Extract VirtualColumn package 2020-07-06 14:44:49 +02:00
Samuel Štancl
405a137ca1 Better solution for tenant DB exception 2020-06-29 12:18:03 +02:00
Samuel Štancl
41aead5da2 Revert "Get rid of TenantDatabaseDoesNotExist exception"
This reverts commit fe52a3c4ea.
2020-06-29 12:14:58 +02:00
Samuel Štancl
0c575f2463 Merge branch '3.x' of github.com:stancl/tenancy into 3.x 2020-06-29 09:59:23 +02:00
Samuel Štancl
fe52a3c4ea Get rid of TenantDatabaseDoesNotExist exception 2020-06-29 09:58:37 +02:00
stancl
c8ed904d16 Apply fixes from StyleCI 2020-06-28 16:25:43 +00:00
Samuel Štancl
8bf673098b Fix guzzle issue 2020-06-28 18:24:41 +02:00
Samuel Štancl
02e049b59e Convert domains to lowercase, persist current domain model on resolver 2020-06-28 11:45:08 +02:00
Samuel Štancl
e93e766f92 Remove unnecessary typehints 2020-06-08 21:35:41 +02:00
Samuel Štancl
6735d0a589 Switch to using MySQL for tests, resolve FK constraint issues 2020-06-07 10:28:55 +02:00
stancl
e1c79bab11 Apply fixes from StyleCI 2020-06-02 18:26:37 +00:00
Samuel Štancl
ba7257670f Add check to invalidateCache() 2020-06-02 20:26:17 +02:00
Samuel Štancl
da23662d7b Clenup for resource syncing 2020-06-01 09:51:22 +02:00
Samuel Štancl
6dad6ce49a Allow array values for Tenant Config
Closes #412
2020-05-30 17:14:56 +02:00
Samuel Štancl
579779b88b Move DatabaseManager 2020-05-30 15:38:29 +02:00
stancl
d94ff22170 Apply fixes from StyleCI 2020-05-26 11:25:35 +00:00
Samuel Štancl
ed200ab733 Universal routes 2020-05-26 13:25:24 +02:00
Samuel Štancl
2839f45196 Refactor models & config 2020-05-24 20:40:10 +02:00
Samuel Štancl
f0ff8248e7 Clean up global state in tests 2020-05-22 20:08:50 +02:00
stancl
f639909eb7 Apply fixes from StyleCI 2020-05-22 10:34:35 +00:00
Samuel Štancl
800e8d5a56 Enable caching in initialization mw 2020-05-22 12:34:25 +02:00
stancl
6955512a6b Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
Samuel Štancl
0049a48383 Laravel 6 support 2020-05-22 10:56:02 +02:00
Samuel Štancl
33d6fd82da -ing event behavior 2020-05-21 17:55:48 +02:00
Samuel Štancl
4f8d892481 Remove obsolete files, restructure 2020-05-21 15:54:35 +02:00
Samuel Štancl
fbe43fbb04 Restructure config 2020-05-21 15:05:05 +02:00
Samuel Štancl
15a7e52208 Get rid of tenant DB manager connection config 2020-05-21 14:47:29 +02:00
Samuel Štancl
2fedd5ce88 Tenant-specific maintenance mode 2020-05-20 21:50:10 +02:00
Samuel Štancl
ac58f6992b Use getTenantKey() instead of ->id references 2020-05-20 20:41:47 +02:00
Samuel Štancl
d7536ce0af CachedTenantResolver 2020-05-20 20:34:16 +02:00
Samuel Štancl
e6e4548a22 Use % for CREATE % GRANT queries 2020-05-20 14:33:24 +02:00
Samuel Štancl
ed96aee669 Use correct path to impersonation migrations in test 2020-05-17 16:38:53 +02:00
Samuel Štancl
1833622170 Extract JobPipelines to a separate package 2020-05-15 18:26:08 +02:00
Samuel Štancl
1008db2d43 Fix cache test 2020-05-15 11:22:12 +02:00
Samuel Štancl
05d6383b99 Session scoping & tenant() cleanup 2020-05-15 11:07:42 +02:00
Samuel Štancl
c8f9a82745 Cleanup after implementing impersonation 2020-05-15 07:39:19 +02:00
Samuel Štancl
10a5b80d44 User impersonation 2020-05-15 07:30:57 +02:00
Samuel Štancl
d92277a236 HasScopedValidationRules trait 2020-05-14 05:13:33 +02:00
Samuel Štancl
208eb2fdd3 Fix tenant collection test 2020-05-14 04:23:38 +02:00
Samuel Štancl
f4898bec2b Rename parent model -> getRelationshipToPrimaryModel 2020-05-14 04:20:06 +02:00
Samuel Štancl
c05262f534 Fix global resources test 2020-05-14 04:18:17 +02:00
Samuel Štancl
42160aa93c BelongsToParentModel 2020-05-14 04:11:44 +02:00
Samuel Štancl
28019f4528 Single DB tenancy 2020-05-14 03:57:13 +02:00
Samuel Štancl
5e99fca070 Custom tenant collections 2020-05-14 02:29:14 +02:00
Samuel Štancl
1a8d150f2c Change bootstrappers namespace 2020-05-13 18:19:59 +02:00
Samuel Štancl
c75c5b3879 Testing 6.x support even for Assert 2020-05-13 06:39:16 +02:00
Samuel Štancl
e1a3b1f7c9 Laravel 6 support for testing 2020-05-13 06:32:07 +02:00
Samuel Štancl
de53b81c0e Change default tenant model, write more tests, cleanup 2020-05-13 06:23:41 +02:00
Samuel Štancl
c32f229dd5 Refactor more old code and get tests to pass 2020-05-13 04:51:37 +02:00