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

30 commits

Author SHA1 Message Date
Samuel Štancl
be13160133 wip Debuggable trait 2022-07-28 15:14:29 +02:00
Abrar Ahmad
97ab483173
Completing PR #881 (#902)
* install PHP CS Fixer

* Fix styling

* remove StyleCI config

* use config from archtechx/template

* Fix styling

* added `php-cs-fixer`

* Update .php-cs-fixer.php

* added GitHub token

* Update ci.yml

* Update ci.yml

* Update ci.yml

* php-cs-fixer workflow same as template

Co-authored-by: Erik Gaal <me@erikgaal.nl>
Co-authored-by: erikgaal <erikgaal@users.noreply.github.com>
2022-07-20 15:28:45 +02:00
Samuel Štancl
73a4a3018c Improve queue tenancy 2021-12-31 18:10:03 +01: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
Cristian Tudorache
1c93360077
Fix Typo in TenantCouldNotBeIdentifiedById (#525)
* Fix Typo in TenantCouldNotBeIdentifiedById

* Fix Typo in TenantCouldNotBeIdentifiedById
2020-11-12 15:14:20 +01:00
Samuel Štancl
5fe79fea33
Fix initialize() method (#488)
* Fix initialize() method

* Remove useless line
2020-09-08 21:19:39 +02:00
Samuel Štancl
2f6ff33bf9 Update typehint 2020-08-13 13:55:22 +02:00
Jørgen Solli
5c887c29f4
Added missing use-declaration (#474) 2020-08-13 13:49:28 +02:00
stancl
003751d293 Apply fixes from StyleCI 2020-08-04 16:12:36 +00:00
Jørgen Solli
b77bf9f179
Allows tenants to be initalized with their IDs (#473)
* Allows tenants to be initalized with their IDs

* Code style, note

Co-authored-by: Samuel Stancl <samuel.stancl@gmail.com>
2020-08-04 18:12:28 +02:00
Samuel Štancl
94abd732ae Merge branch '3.x' of github.com:stancl/tenancy into 3.x 2020-07-20 14:30:47 +02:00
Samuel Štancl
9eb4bfbdc8 End tenancy before initializing again 2020-07-20 14:30:43 +02:00
Timothy
683bb5a88d
Use the Tenant models' getTenantKeyName() value (#461)
Don't assume the Tenant can be found with the `id` attribute. The Tenant model allows for setting a different Tenant key name through `getTenantKeyName()`, so lets use it to find the Tenant.
2020-07-15 00:01:28 +02:00
Samuel Štancl
8bf673098b Fix guzzle issue 2020-06-28 18:24:41 +02:00
Samuel Štancl
0442be42de Fix runForMultiple() for incrementing tenant ids 2020-06-10 18:31:25 +02:00
stancl
6955512a6b Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
Samuel Štancl
33d6fd82da -ing event behavior 2020-05-21 17:55:48 +02:00
Samuel Štancl
3e337e1ae0 Fire event after setting tenant propery 2020-05-17 18:09:56 +02:00
Samuel Štancl
dd44a3406d Fire the newly created Tenancy events 2020-05-17 17:53:38 +02:00
Samuel Štancl
10a5b80d44 User impersonation 2020-05-15 07:30:57 +02:00
Samuel Štancl
8915297c30
Merge branch 'master' into shared-users 2020-05-13 00:33:27 +02:00
Samuel Štancl
89936187ce Rewrite old tests 2020-05-12 23:22:40 +02:00
Samuel Štancl
b7c8f1fba7 Shared users - complete 2020-05-12 01:54:02 +02:00
Samuel Štancl
86a98b2bc8 Queue tests 2020-05-11 05:22:55 +02:00
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
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
bd9aad229b vague first draft of v3. TenantModelTest is passing 2020-05-08 04:37:43 +02:00