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

960 commits

Author SHA1 Message Date
Samuel Štancl
30a1f9102d
PHP 8 support (#542)
* PHP 8 support, test workflow syntax

* Try using a custom data structure in the workflow

* Try using matrix include

* Default PHP target

* single include

* fix composer package name

* [WIP] Try using dev-master for valuestore

* Update spatie/valuestore constraint to be stable
2020-11-30 17:30:42 +01:00
Samuel Štancl
126afcd0dd
Terminating pipelines (#527)
* Return false from CreateDatabase job

* Terminating pipeline tests
2020-11-15 16:26:26 +01:00
Samuel Štancl
8f12dd8829
Update TenantCouldNotBeIdentifiedById.php 2020-11-14 16:45:52 +01:00
stancl
19c5820efd Apply fixes from StyleCI 2020-11-13 21:00:16 +00:00
Samuel Štancl
dc60276e6d Inject the Application contract instead of the concrete class 2020-11-13 22:00:02 +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
Pete Cooper
dd1b7fc86d
Fix tenants:list when not using multi-domain tenancy (#504)
* Fix tenants:list when not using multi-domain tenancy

* formatting

* update to an if/else
2020-11-12 17:23:58 +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
Dylan Harbour
e0af2e9945
Fix issue 521: Array input for --tenants (#522)
* Fix issue 521: Array input for `--tenants`

Tenancy for Laravel docs refer to using multiple `--tenants=<...> ` options when running a command for multiple tenants explicitly: https://tenancyforlaravel.com/docs/v3/console-commands

However, the command input is not defined correctly to receive arrays.
https://laravel.com/docs/7.x/artisan#input-arrays

This PR adds a failing test, fixes the issue and corrects a typo in the contributing readme.

* Styleci

Co-authored-by: Dylan Harbour <dylanh@ringier.co.za>
2020-11-12 14:08:37 +01:00
Samuel Štancl
f273ed4f1e
Composer 2 (#517) 2020-10-29 11:59:28 +01:00
Samuel Štancl
2cbf8dbd4e
Remove Patreon and kofi 2020-10-25 16:33:49 +01:00
GENL
411d486282
Fix: The database name is displayed when the TenantDatabaseAlreadyExistsException exception is thrown. (#499)
* Fix: The database name is displayed when the TenantDatabaseAlreadyExistsException exception is thrown.

* Fix the code style

Co-authored-by: Henrich <Ekoumelong>
2020-09-23 19:47:35 +02:00
domkrm
894965d1a7
Extend GlobalCache facade from the original facade (#495) 2020-09-18 23:18:21 +02:00
domkrm
218a34c40e
Only bind UUID generator if one is specified in config (#493) 2020-09-16 15:06:24 +02:00
Samuel Štancl
5fe79fea33
Fix initialize() method (#488)
* Fix initialize() method

* Remove useless line
2020-09-08 21:19:39 +02:00
Andre Sayej
36aabb7883
First try at Laravel 8 (#491) 2020-09-08 21:11:56 +02:00
Samuel Štancl
375380cc7e Merge branch '3.x' of github.com:stancl/tenancy into 3.x 2020-09-02 19:45:10 +02:00
Samuel Štancl
3853c4cdcc Make annotations static 2020-09-02 19:45:06 +02:00
Andrei Ioniță
bb5baced2a
Update config links to v3 docs (#486) 2020-09-01 12:38:25 +02:00
Samuel Štancl
14370baaa7
Link to /issues 2020-08-31 21:34:56 +02:00
Samuel Štancl
14078b6720
Make documentation issues a link to tenancy-docs 2020-08-31 21:34:37 +02:00
Samuel Štancl
75ea844741
Delete documentation-issue.md 2020-08-31 21:34:01 +02:00
bepsvpt
1ff82fb2a0
reverse middlewares order before prepend (#479) 2020-08-18 16:02:26 +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
stancl
99dec30512 Apply fixes from StyleCI 2020-08-03 12:41:03 +00:00
Samuel Stancl
54435e9cab
risky: true 2020-08-03 14:40:54 +02: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
a002f59420 Merge branch '3.x' of github.com:stancl/tenancy into 3.x 2020-08-01 15:07:17 +02:00
Samuel Štancl
d20056b804 Fix subdomain middleware 2020-08-01 15:07:10 +02:00
Lupacescu Eduard
520fa96d8f
Qualify where column (#467) 2020-07-27 15:02:12 +02:00
MinaseTaki
f2a3cf028c
Update Tenant.php (#463) 2020-07-21 13:04:22 +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 Stancl
aee2a2e567
Set root in config() too 2020-07-14 19:51:11 +02:00
Samuel Stancl
df4d7288d7
Create config.yml 2020-07-12 15:04:14 +02:00
Samuel Stancl
b573f92e07
Update SUPPORT.md 2020-07-12 15:03:52 +02:00
Samuel Stancl
57e5430879
Update SUPPORT.md 2020-07-12 15:03:41 +02:00
Samuel Stancl
c12cca712e Update issue templates 2020-07-12 15:02:57 +02:00
Samuel Stancl
fa6fee06ee
Update SUPPORT.md 2020-07-12 15:01:25 +02:00
Samuel Štancl
a5e02168d0 Merge branch '3.x' of github.com:stancl/tenancy into 3.x 2020-07-10 21:01:59 +02:00
Samuel Štancl
8734f74ddb Fix Tenant typehint in jobs 2020-07-10 21:01:56 +02:00
stancl
dc32fee8f4 Apply fixes from StyleCI 2020-07-09 11:29:15 +00:00
Samuel Štancl
4b9b2648d5 Annotations for Domain contract 2020-07-09 13:29:04 +02:00
Samuel Štancl
dd90efdffe Fix annotation 2020-07-09 13:18:54 +02:00
stancl
dbc77a110e Apply fixes from StyleCI 2020-07-06 12:45:10 +00:00
Samuel Štancl
02557ecca1 Merge branch '3.x' of github.com:stancl/tenancy into 3.x 2020-07-06 14:44:56 +02:00