Samuel Štancl
942d79cbd7
resolve all phpstan issues
2022-11-08 13:34:04 +01:00
Abrar Ahmad
05f1b2d6f5
Add cookie option on Initialize Tenancy by Request identification ( #980 )
...
* Add cookie option on Initialize Tenancy by Request identification
* add cookie property
2022-10-18 13:52:16 +02:00
Samuel Štancl
ccaba05272
Add identification section to config, refactor static properties
2022-10-01 20:01:18 +02:00
Samuel Štancl
a94227a19c
get down to 59 phpstan errors
2022-09-29 22:20:55 +02:00
Jori Stein
121370ea01
[4.x] Add command to bring the tenants up and down from maintenance and remove deprecated exception ( #761 )
...
* Add bring up from maintenance function
* Add up and down tenant maintenance commands
* Rename commands signatures
* Update TenancyServiceProvider.php
* Complying to Laravel maintenance code and parameters
* Update MaintenanceModeTest.php
* Add maintenance mode via commands test
* Update CheckTenantForMaintenanceMode.php
* Update MaintenanceModeTest.php
* Cookie bypass only for > Laravel 8
* minor formatting change, trigger CI
* clean
* Update MaintenanceModeTest.php
* Add comments for using the 'tenants' option in runForMultiple
* improve code
* php-cs-fixer
* fix php cs fixer config
* improve test logic
* remove version check since v4 will be L9+
Co-authored-by: Samuel Štancl <samuel@archte.ch>
Co-authored-by: lukinovec <lukinovec@gmail.com>
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
2022-09-29 15:59:14 +02:00
Samuel Štancl
2de182a260
Merge branch 'master' of github.com:archtechx/tenancy
2022-09-29 15:07:42 +02:00
Samuel Štancl
d463e2da61
phpstan improvements
2022-09-29 15:07:16 +02:00
PHP CS Fixer
77b5e508d6
Fix code style (php-cs-fixer)
2022-09-29 00:47:38 +00:00
Samuel Štancl
87212e5390
phpstan, global_cache, resolver improvements, InitializationHelpers trait
2022-09-29 02:47:13 +02: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
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
Erik Gaal
79e3d53b06
[3.x] Compatibility with Laravel 9 ( #802 )
...
* Test on Laravel 9
* Don't extend final Kernel class
* Make FilesystemTenancyBootstrapper compatible with Flysystem v3
Co-authored-by: George <jiri.zizka@funfirst.cz>
* Update tenant maintenance mode te be in line with Laravel
* Exclude PHP 7.4 <> L9 combination from testing
* add root_override-related assertions
* getPrefix -> getPathPrefix
* handle / inconsistency in s3 prefix
* Refactor Storage facade changes
Co-authored-by: George <jiri.zizka@funfirst.cz>
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
2022-03-08 01:50:25 +01:00
stancl
99dec30512
Apply fixes from StyleCI
2020-08-03 12:41:03 +00:00
Samuel Štancl
d20056b804
Fix subdomain middleware
2020-08-01 15:07:10 +02:00
Samuel Štancl
41127048f1
Fix notADomain logic
2020-06-04 12:21:19 +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
stancl
f639909eb7
Apply fixes from StyleCI
2020-05-22 10:34:35 +00:00
Samuel Štancl
800e8d5a56
Enable caching in initialization mw
2020-05-22 12:34:25 +02:00
stancl
6955512a6b
Apply fixes from StyleCI
2020-05-22 09:01:31 +00:00
Samuel Štancl
0049a48383
Laravel 6 support
2020-05-22 10:56:02 +02:00
Samuel Štancl
2fedd5ce88
Tenant-specific maintenance mode
2020-05-20 21:50:10 +02:00
Samuel Štancl
0508429e0f
Fix asset publishing
2020-05-17 15:14:05 +02:00
Samuel Štancl
3547b8ce4c
PreventAccessFromCentralDomains middleware
2020-05-16 11:57:29 +02:00
Samuel Štancl
05d6383b99
Session scoping & tenant() cleanup
2020-05-15 11:07:42 +02:00
Samuel Štancl
c32f229dd5
Refactor more old code and get tests to pass
2020-05-13 04:51:37 +02:00
Samuel Štancl
89936187ce
Rewrite old tests
2020-05-12 23:22:40 +02:00
Samuel Štancl
494d274798
Finish path identification - configurability & exception handling
2020-05-10 20:16:08 +02:00
Samuel Štancl
f328fc9c08
Combined subdomain/domain identification
2020-05-10 19:30:01 +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
8e1cfa5ae0
Make central route 404 in PreventAccess mw customizable
2020-04-25 01:30:27 +02:00
Samuel Štancl
56903d20bf
Use Telescope tags on universal routes too - fix #346
2020-04-23 19:08:54 +02:00
Samuel Štancl
b441d789b6
Pass $request and $next to onFail closures
2020-04-06 15:15:52 +02:00
Samuel Štancl
4f5ef6fc56
Return the result of onFail closures in middleware
2020-04-06 11:14:05 +02: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
5ebb68e860
Fix issue related to closure middleware
2019-12-26 20:28:29 +01:00
Samuel Štancl
ab04ef025b
[2.2.0] Universal routes ( #210 )
...
* Universal routes
* Fix bugs
* Add universal MW group
2019-10-30 15:50:00 +01:00
Samuel Štancl
cbd3850a8f
[2.1.0] Initialize tenancy before executing controller constructors ( #169 )
...
* Update message about migrations in Install
* wip
* Apply fixes from StyleCI
* string instead of array
* Fix globalUrl binding
* Simplify if condition in TenantRouteServiceProvider
* Apply fixes from StyleCI
* Improve PreventAccessFromTenantDomains - look into middleware subgroups
* Fix typo
* gatherMiddleware() instead of middleware()
* Fix tests
* Apply fixes from StyleCI
* Update install command
* Apply fixes from StyleCI
* Add the PreventAccess MW to tenant routes by default
2019-10-15 20:23:56 +02:00
Chris Brown
7143bce5f9
Update PreventAccessFromTenantDomains.php ( #171 )
...
* Update PreventAccessFromTenantDomains.php
* Update PreventAccessFromTenantDomains.php
* Update PreventAccessFromTenantDomains.php
2019-10-14 15:51:26 +02:00
Anton Komarev
d70e561106
Fix variables code style consistency ( #136 )
2019-09-29 13:02:51 +02:00
Anton Komarev
3d1ceadf34
[2.x] Remove request helper from TenantManager ( #144 )
...
* Remove request from tenant manager
* Rollback
2019-09-27 06:53:08 +02:00
Anton Komarev
3f4018f93c
[2.x] Add missing field in InitializeTenancy middleware ( #135 )
...
* Add missing field
* Make field protected
* Specify exact exception type
* Changed Closure on callable
2019-09-26 17:01:38 +02:00
Samuel Štancl
4a17992957
Home route -> home url
2019-09-22 17:24:02 +02:00
Samuel Štancl
92618e09a5
Merge branch '2.x' of github.com:stancl/tenancy into 2.x
2019-09-22 17:17:46 +02:00
Samuel Štancl
e21f5ad76f
Fix PreventAccess middleware
2019-09-22 17:17:38 +02:00
stancl
efcb2dd425
Apply fixes from StyleCI
2019-09-21 21:53:33 +00:00
Samuel Štancl
7229691977
Add comments
2019-09-21 23:53:23 +02:00
Samuel Štancl
c9903cd43c
Clean up
2019-09-19 20:32:09 +02:00
stancl
8a548f9459
Apply fixes from StyleCI
2019-08-23 20:24:39 +00:00