1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 12:54:05 +00:00
Commit graph

618 commits

Author SHA1 Message Date
Samuel Štancl
157f87ae0c Fix tests 2020-03-17 17:51:38 +01:00
Samuel Štancl
0540fe4581 Fix indentation 2020-03-17 16:41:38 +01:00
Samuel Štancl
febca87dfc Merge branch '2.x' into laravel-7-support 2020-03-17 16:40:15 +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
2921131674 Fix dockerfile 2020-03-15 16:19:02 +01:00
Samuel Štancl
c449951475 Indentation 2020-03-15 16:14:11 +01:00
Samuel Štancl
ab8de77529
Merge branch '2.x' into laravel-7-support 2020-03-15 16:04:55 +01:00
Samuel Štancl
1210c0dd5f Different installation for Laravel 7 2020-03-15 16:02:32 +01:00
Samuel Štancl
13422fb090
Use phpredis 4.3.0 (#319) 2020-03-15 15:45:21 +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
d1991fdd61
Use stable phpcov 2020-03-13 13:25:28 +01:00
Samuel Štancl
142912edc5
Update donation link 2020-03-10 23:04:15 +01:00
Samuel Štancl
c3bd02bc12
Create DONATIONS.md 2020-03-10 23:03:22 +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
58bb9bfb96 Fix travis yml 2020-03-04 22:00:56 +01:00
Samuel Štancl
18fa0295d8 6 -> 7 2020-03-04 21:47:53 +01:00
Samuel Štancl
ba8e9b0261 verify both laravel versions are used 2020-03-04 21:13:51 +01:00
Samuel Štancl
f3645dd65c Merge branch 'laravel-7-support' of github.com:stancl/tenancy into laravel-7-support 2020-03-04 21:13:24 +01:00
Samuel Štancl
a5243ebdab switch up envs 2020-03-04 21:13:19 +01:00
Samuel Štancl
2c9c05b934
Cleanup 2020-03-04 20:51:18 +01:00
Samuel Štancl
b843069470
Use dev-master for phpcov 2020-03-04 20:40:59 +01:00
Samuel Štancl
b9c521a4ee Consistent indentation in travis.yml 2020-03-04 20:06:14 +01:00
Samuel Štancl
5c2698938e Fix travis.yml 2020-03-04 20:05:42 +01:00
Samuel Štancl
6d5957ff6b Remove language from travis.yml 2020-03-04 20:05:25 +01:00
Samuel Štancl
97348e960b Laravel 7 support 2020-03-04 20:04:03 +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
01f080450d
Add link to support 2020-01-27 18:22:10 +01:00
Samuel Štancl
b4cf658ad8
Create SUPPORT.md 2020-01-27 18:21:08 +01:00
Samuel Štancl
bb46767257 Add regression test for #271 2020-01-19 12:15:26 +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
Samuel Štancl
609b6f12cf
Remove typehints passed to route() 2019-12-06 22:34:02 +01:00
Samuel Štancl
f99ecb72c7
Don't accept closures in tenant() helper 2019-12-03 22:52:30 +01:00
Samuel Štancl
9851f088ea
Make route parameter optional, fix #240 2019-12-03 22:49:20 +01:00
Samuel Štancl
a8f84d2808 Accept closures in tenant() helper 2019-12-02 17:57:16 +01:00
Samuel Štancl
fd00be646e
[2.3.0] tenant_route() helper (#229)
* Add tenant_route helper

* Add tests

* Remove redundant setUp()

* Fix test namespaces

* Apply fixes from StyleCI
2019-11-29 00:12:07 +01:00
Samuel Štancl
4e477b472f
Move ignition contracts to require 2019-11-23 15:17:51 +01:00
Samuel Štancl
f34986b29f
[2.2.0] Tenant aware commands (#221)
* wip

* Apply fixes from StyleCI

* Return value when a single tenant is passed

* array map -> foreach

* bug fixes
2019-11-10 12:32:26 +01:00
Samuel Štancl
2b00665247
[2.2.0] Allow --path to be specified for migration commands (#211)
* Allow --path to be specified for migration commands

* Fix tests
2019-11-07 21:44:45 +01:00
Mads Møller
b3cf499ebd add missing json extension (#217) 2019-11-06 18:02:51 +01:00
Samuel Štancl
0edb751e26
Update config key 2019-11-06 18:02:12 +01:00