Samuel Štancl
3ee1e36653
Set key type to string when uuids are used
2021-04-22 11:04:06 +02:00
Samuel Štancl
8f34a733d8
Add tenancy()->central() helper ( #526 )
...
* Add tenancy()->central() helper
* Apply fixes from StyleCI
* Add docblock
* Fix return typehint
Co-authored-by: stancl <stancl@users.noreply.github.com>
2020-11-13 08:15:24 +01:00
amirakbulut
df34a9eab9
Modified GeneratesIds.php ( #472 )
...
* Modified GeneratesIds.php
When overwriting `getTenantKeyName()` to use another column, an exception occurs when creating new tenants. (Field 'id' doesn't have a default value).
This fixes the issue.
* Fix style
Co-authored-by: Samuel Stancl <samuel.stancl@gmail.com>
2020-08-03 14:29:11 +02:00
Samuel Štancl
dd90efdffe
Fix annotation
2020-07-09 13:18:54 +02:00
Samuel Štancl
f483d0b8cf
Extract VirtualColumn package
2020-07-06 14:44:49 +02:00
Samuel Štancl
31af121bac
Merge branch '3.x' of github.com:stancl/tenancy into 3.x
2020-06-28 11:58:15 +02:00
Samuel Štancl
27fb563cde
if domains not array
2020-06-28 11:57:55 +02:00
stancl
4cad3bf8fc
Apply fixes from StyleCI
2020-06-28 09:46:19 +00:00
Samuel Štancl
02e049b59e
Convert domains to lowercase, persist current domain model on resolver
2020-06-28 11:45:08 +02:00
stancl
f1e083a408
Apply fixes from StyleCI
2020-06-02 18:10:29 +00:00
Samuel Štancl
5d94727ddd
Rewrite cached resolver logic to allow for cache invalidation logic
2020-06-02 20:10:17 +02:00
Samuel Štancl
579779b88b
Move DatabaseManager
2020-05-30 15:38:29 +02:00
stancl
1a85bca7ee
Apply fixes from StyleCI
2020-05-24 18:40:24 +00:00
Samuel Štancl
2839f45196
Refactor models & config
2020-05-24 20:40:10 +02:00
stancl
6955512a6b
Apply fixes from StyleCI
2020-05-22 09:01:31 +00:00
Samuel Štancl
c40dba4e02
Fix typo
2020-05-21 17:00:57 +02:00
Samuel Štancl
fbe43fbb04
Restructure config
2020-05-21 15:05:05 +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
0508429e0f
Fix asset publishing
2020-05-17 15:14:05 +02:00
Samuel Štancl
4d6003eec0
Tenant|Model typehint
2020-05-16 12:01:58 +02:00
Samuel Štancl
d92277a236
HasScopedValidationRules trait
2020-05-14 05:13:33 +02:00
Samuel Štancl
f4898bec2b
Rename parent model -> getRelationshipToPrimaryModel
2020-05-14 04:20:06 +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
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