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

650 commits

Author SHA1 Message Date
Abrar Ahmad
7c4afc37d0 remove "ensuring connection exists" check 2022-10-07 12:25:03 +05:00
Abrar Ahmad
7f6166d49a improve comments 2022-09-29 17:04:39 +05:00
Abrar Ahmad
f97651e16b Merge branch '515-complete' of https://github.com/abrardev99/tenancy into 515-complete 2022-09-28 16:36:24 +05:00
Abrar Ahmad
71c877535c Update DatabaseConfig.php 2022-09-28 16:20:10 +05:00
Abrar Ahmad
8c857bbd61 Update DatabaseConfig.php 2022-09-28 16:18:54 +05:00
Abrar Ahmad
dd3e3476aa Update DatabaseConfig.php 2022-09-28 16:13:33 +05:00
Abrar Ahmad
45db7e6592 purge connection improvements 2022-09-28 15:51:07 +05:00
Abrar Ahmad
0fc2a984ed
Update src/Database/DatabaseConfig.php
Co-authored-by: Samuel Štancl <samuel@archte.ch>
2022-09-28 14:54:56 +05:00
Abrar Ahmad
8f7bb0c1a8 Update DatabaseConfig.php 2022-09-26 13:57:33 +05:00
Abrar Ahmad
2a6290be9c todo and comments 2022-09-23 11:39:21 +05:00
Abrar Ahmad
4f71f0bab3 Update DatabaseConfig.php 2022-09-23 11:13:25 +05:00
Abrar Ahmad
a65f9ac022 Update DatabaseConfig.php 2022-09-15 11:45:10 +05:00
Abrar Ahmad
5674ce4346 Revert "remove host connection name config key"
This reverts commit 42acb823e8.
2022-09-15 10:39:30 +05:00
Abrar Ahmad
42acb823e8 remove host connection name config key 2022-09-14 14:29:07 +05:00
Abrar Ahmad
e6d703eee4 test named 2022-09-13 17:27:52 +05:00
Abrar Ahmad
f2a253c40d Improvements 2022-09-13 16:24:30 +05:00
Abrar Ahmad
09ba3fd0fa remove unused method 2022-09-13 16:04:25 +05:00
Abrar Ahmad
52cce14797 purge connection and add more tests 2022-09-13 16:02:42 +05:00
Abrar Ahmad
cd6e989c09 create host connection for creating, deleting tenants 2022-09-13 14:41:28 +05:00
Abrar Ahmad
f2c64088ed
[4.x] Set tenant as a default parameter for the URLs when using Path identification (#925)
* set tenant as default url parameter

* Update PathIdentificationTest.php

* assertion

* test rename

* fix tests

* fix string

Co-authored-by: Samuel Štancl <samuel@archte.ch>
2022-09-02 19:04:00 +02:00
Abrar Ahmad
409190fae1
[4.x] Improve tenants:run command to execute Input\Output commands (#923)
* run command useable for questions asking commands

* move console classes to Console directory

* fix styling

* Update src/Commands/Run.php

Co-authored-by: Samuel Štancl <samuel@archte.ch>

* remove tenant migration line

* assert command executed in tenant context

* improve test

* cleanup code

* Update CommandsTest.php

* remove irrelevant assertions

Co-authored-by: Samuel Štancl <samuel@archte.ch>
2022-09-02 18:46:13 +02:00
lukinovec
3bf2c39e1a
[4.x] Make impersonation tokens require stateful guards (#935)
* Throw an exception on attempt to create impersonation token with a non-stateful guard

* Test that impersonation tokens can only be created with a stateful guard

* Fix code style (php-cs-fixer)

* Escape backslashes in the exception's message

Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>

* Make the exception only about requiring a stateful guard

Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
2022-09-02 17:46:27 +02:00
lukinovec
f83504ac6f
[4.x] Add ScoutTenancyBootstrapper (#936)
* Add ScoutTenancyBootstrapper

* Fix code style (php-cs-fixer)

* extract getTenantPrefix method

* Fix code style (php-cs-fixer)

Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
2022-09-02 17:24:37 +02:00
PHP CS Fixer
020039bf89 Fix code style (php-cs-fixer) 2022-09-01 17:07:17 +00:00
Samuel Štancl
f941df3a82 minor improvements for phpstan 2022-09-01 19:06:54 +02:00
emargareten
62d19c5f5d
Reverse bootstrappers when reverting to central (#932)
Some of my bootstrappers are depending on previous bootstrappers but when reverting it needs to run in reverse order.
Submitting to v4 since this might be a breaking change (currently I am overriding this file).
2022-08-30 16:24:50 +02:00
Abrar Ahmad
3542b3f028
update spatie/ignition to support L9 (#930) 2022-08-30 15:21:19 +02:00
PHP CS Fixer
3605252d85 Fix code style (php-cs-fixer) 2022-08-30 03:46:17 +00:00
Samuel Štancl
8af354c20e get phpstan errors down from 252 to 189 2022-08-30 05:44:23 +02:00
PHP CS Fixer
eade69c3f4 Fix code style (php-cs-fixer) 2022-08-27 20:29:46 +00:00
Samuel Štancl
d2e1ce0a1e refactor TenantDatabaseManagers 2022-08-27 22:29:08 +02:00
PHP CS Fixer
824292e6df Fix code style (php-cs-fixer) 2022-08-27 01:17:45 +00:00
Samuel Štancl
40bf28c7d0 general refactor, move more classes under Database namespace 2022-08-27 03:17:16 +02:00
Samuel Štancl
5f41647a6b revert Tenancy changes, fix failing tests 2022-08-26 21:49:09 +02:00
PHP CS Fixer
06cc7bf686 Fix code style (php-cs-fixer) 2022-08-26 19:35:44 +00:00
Samuel Štancl
55d0a9ab87 misc improvements - stronger types, exception refactor 2022-08-26 21:35:17 +02:00
Samuel Štancl
931c76d697
Pull 3.x changes into master (#922)
* exclude master from CI

* Add space after 'up' in 'docker-compose up-d' (#900)

* Fix ArgumentCountError on the TenantAssetsController (#894)

* Fix ArgumentCount exception on the TenantAssetsController when no `$path` is provided

* CS

* CS

* Handle null case explicitly

* code style

Co-authored-by: Bram Wubs <bram@sibi.nl>
Co-authored-by: Samuel Štancl <samuel@archte.ch>

* Add support for nested tenant config override (#920)

* feat: add support for nested tenant config override

* test: ensure nested tenant values are mapped

* Update TenantConfigTest.php

Co-authored-by: lukinovec <lukinovec@gmail.com>
Co-authored-by: Bram Wubs <megawubs@users.noreply.github.com>
Co-authored-by: Bram Wubs <bram@sibi.nl>
Co-authored-by: George Bishop <email.georgebishop@gmail.com>
Co-authored-by: Abrar Ahmad <abrar.dev99@gmail.com>
2022-08-22 17:59:43 +02:00
Samuel Štancl
fce95aa862 Merge branch 'master' of github.com:archtechx/tenancy 2022-08-21 18:12:27 +02:00
PHP CS Fixer
db4a795c3e Fix code style (php-cs-fixer) 2022-08-04 18:30:06 +00:00
Abrar Ahmad
a45aa8e274
Improve tenants:run command (#912)
* improve `tenants:run` command

* Update Run.php
2022-08-04 20:29:39 +02:00
Samuel Štancl
e4a47f3e6e Set default $tenant value 2022-08-02 15:21:02 +02:00
Samuel Štancl
3ea38bba4d Merge branch 'master' of github.com:tenancy-for-laravel/v4 2022-08-02 15:01:09 +02:00
Samuel Štancl
da0072bfe8 Fix $tenant type 2022-08-02 15:01:03 +02:00
PHP CS Fixer
9c584b8394 Fix code style (php-cs-fixer) 2022-08-02 02:21:33 +00:00
Samuel Štancl
e9b6de78b2 minor code updates 2022-08-02 04:21:03 +02:00
PHP CS Fixer
3d8d670447 Fix code style (php-cs-fixer) 2022-07-28 13:30:51 +00:00
Samuel Štancl
d0baabbc9d Merge branch 'master' of github.com:archtechx/tenancy 2022-07-28 15:30:19 +02:00
Samuel Štancl
be13160133 wip Debuggable trait 2022-07-28 15:14:29 +02:00
beezerk23
233a1222bf
feat(UniversalRoutes): Stop overwriting the (maybe) customized onFail… (#679)
* feat(UniversalRoutes): Stop overwriting the (maybe) customized onFail method and just call it in case of an exception

* throw correct exception when `$originalOnFail()` is null

* Update DomainTest.php

* convert test to pest and renamed

* Update tests/DomainTest.php

Co-authored-by: Samuel Štancl <samuel@archte.ch>

Co-authored-by: Abrar Ahmad <abrar.dev99@gmail.com>
Co-authored-by: Samuel Štancl <samuel@archte.ch>
2022-07-25 18:37:52 +02:00
PHP CS Fixer
c0f97fa04e Fix code style (php-cs-fixer) 2022-07-20 13:29:11 +00:00